-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.php
111 lines (87 loc) · 2.98 KB
/
registration.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<html>
<head>
<title>Error</title>
<link rel="stylesheet" href="external1.css">
</head>
<body bgcolor="mistyrose" >
<table>
<tr>
<img src="hos1.png" height="25%" width="15%" ></h1></I><td width="600px" style="font-size:50px;font-family:forte;"> <font color="#428bca"> LIFE MATTERS </font><font color="#000"> Hospital</font> </td>
</tr>
</table>
<h1 id="myHeader" align="center">
<table width="100%" align="right">
<tr>
<th> <a href="index.html" style="color: white"> HOME </a></th>
<th> <a href="REGISTRATION1.html" style=" color: white">REGISTRATION </a></th>
<th> <a href="a.html" style=" color: white">MEDICINES</a> </th>
<th> <a href="Procedures.html" style=" color: white">PROCEDURES</a></th>
<th> <a href="LOCATIONS.html" style="color: white"> LOCATIONS </a ></th>
</tr>
</table><br>
<h1 align="center" >Error ): -</h1>
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
ini_set("display_errors","1");
error_reporting(E_ALL);
session_start();
$initial = $_POST['initial'];
$_SESSION['initial']=$initial;
$fname = $_POST['fname'];
$_SESSION['fname'] = $fname;
$lname = $_POST['lname'];
$_SESSION['lanme'] = $lname;
$contact = $_POST['contact'];
$_SESSION['contact'] = $contact;
$email = $_POST['email'];
$_SESSION['email'] = $email;
$referral = $_POST['referral'];
$reAddress = $_POST['reAddress'];
$referred = $_POST['referred'];
$_SESSION['referred'] = $referred;
$dob = $_POST['dob'];
$gender = $_POST['gender'];
$MStatus = $_POST['MStatus'];
$fathername = $_POST['fathername'];
$Education = $_POST['Education'];
$Occupation = $_POST['Occupation'];
$fim = $_POST['fim'];
$Nationality = $_POST['Nationality'];
$Religion = $_POST['Religion'];
$Mother_Tongue = $_POST['Mother_Tongue'];
$Pan_No = $_POST['Pan_No'];
$Aadhaar_Number = $_POST['Aadhaar_Number'];
$Medical_Insurance = $_POST['Medical_Insurance'];
$tc = $_POST['tc'];
//Database connection
// $conn = mysqli_connect('localhost','root','','project');
$conn = mysqli_connect('sql6.freesqldatabase.com','sql6450299','tg1rkxExpj','project');
if($conn)
{
echo "Hey"
}
else
{
echo "bye"
}
$sql = "INSERT INTO `sql6450299` VALUES ('$initial','$fname','$lname','$contact','$email','$referral','$reAddress','$referred','$dob','$gender','$MStatus','$fathername','$Education','$Occupation','$fim','$Nationality','$Religion','$Mother_Tongue','$Pan_No','$Aadhaar_Number','$Medical_Insurance','$tc')";
$result= mysqli_query($conn,$sql);
if($result){
header('Location: Registration_Successful.php');
}
else {
header('Location: index.html');
}
//exit;}
/*intial,fname,lname,contact,email,referral,reAddress,referred,dob,gender,MStatus,fathername,Education,Occupation,
fim,Nationality,Religion,Mother_Tongue,Pan_No,Aadhaar_Number,Medical_Insurance,tc,
*/
?>
<div class="top">
<br>
<div>
Contact Us +91 96366 20000 / 01 | [email protected]
</div>
</div>
</body>
</html>