-
Notifications
You must be signed in to change notification settings - Fork 0
/
saveguest.php
40 lines (29 loc) · 1.04 KB
/
saveguest.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
<?php
include_once "header.php";
include_once "connection.php";
$sql = "INSERT INTO guest_list
(first_name,last_name,user_id,email,password, gender,month,date,year,mobileno,Flat,House,Road, Thana, District, Country)
VALUES('".$_POST['first_name']."','".$_POST['last_name']."','".$_POST['user_id']."','".$_POST['email']."','".$_POST['password']."','".$_POST['gender']."','".$_POST['month']."','".$_POST['date']."','".$_POST['year']."','".$_POST['mobileno']."','".$_POST['Flat']."','".$_POST['House']."','".$_POST['Road']."','".$_POST['Thana']."','".$_POST['District']."','".$_POST['Country']."');";
if(mysqli_query($con, $sql))
{
?>
<div style="width: 100%;">
<img src="resources\image\8.jpg" alt="Success Icon" style=" margin: 200px;"/>
<h1 style="color: white;">Thanks for sing up and your sing up is successful</h1>
</div>
<?php
}
else
{
echo "Error: ". $sql . "<br>" . mysqli_error($con);
}
mysqli_close($con); ?>
</p>
</p>
</div>
</div>
</body>
</html>
<?php
include_once "under.php";
?>