-
Notifications
You must be signed in to change notification settings - Fork 0
/
tr.html
42 lines (42 loc) · 1015 Bytes
/
tr.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<pre>
<p>
<?php
if(isset($_POST["submit"]))
{
$rollnumber=$_POST['rollnumber'];
$studentname=$_POST['studentname'];
$address=$_POST['address'];
$pincode=$_POST['pincode'];
$phone=$_POST['phone'];
$emailid=$_POST['emailid'];
$fathername=$_POST['fathername'];
$fatheraddress=$_POST['fatheraddress'];
$fathermonumber=$_POST['fathermonumber'];
$password=$_POST['password'];
$con=mysqli_connect("localhost","root","","nitdelhi hostel");
$sql="insert into newregistration(rollnumber,studentname,address,phone,emailid,pincode,fathername,fatheraddress,fathermonumber,password) values ($rollnumber,'$studentname','$address',$phone,'$emailid',$pincode,'$fathername','$fatheraddress',$fathermonumber,'$password')";
$query=mysqli_query($con,$sql);
if($query)
{
echo "<br><h1>registered successfully</h1> ";
}
else
{
echo "<h2>Try Again</h2>";
}
}
else
{
echo "<h1>Try Again</h1>";
}
?>
<P>
</pre>
</body>
</html>