-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.php
More file actions
52 lines (39 loc) · 1.41 KB
/
welcome.php
File metadata and controls
52 lines (39 loc) · 1.41 KB
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
<html>
<body>
<style>
body {
background-image: url('https://4kwallpapers.com/images/walls/thumbs_3t/2734.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-family: 'Sansita Swashed', cursive;
font-size: 28px;
display: table-cell;
padding: 180px;
}
</style>
<center><h2>Welcome <?php echo $_POST["Name"]; ?><br>
Journey : <?php echo $_POST["Starting_place"]; ?>
-<?php echo $_POST["Destination"]; ?><br>
Get ready on: <?php echo $_POST["Journey_starting_date"]; ?>
<?php echo $_POST["Journey_starting_time"];?> <br>
Thanks for your registration... Have a Great Journey...</h2><center>
<?php
$con = mysqli_connect('localhost', 'root', '','software');
// get the post records
$Name = $_POST['Name'];
$phone_number = $_POST['phone_number'];
$Journey_starting_date = $_POST['Journey_starting_date'];
$Journey_starting_time = $_POST['Journey_starting_time'];
$Starting_place = $_POST['Starting_place'];
$Destination = $_POST['Destination'];
// database insert SQL code
$sql = "INSERT INTO information (id, Name, phone_number, Journey_starting_date, Journey_starting_time, Starting_place, Destination) VALUES ('0', '$Name', '$phone_number', '$Journey_starting_date', '$Journey_starting_time', '$Starting_place', '$Destination')";
// insert in database
if($con->query($sql) === FALSE)
{
echo "Registration Failed...";
}
?>
</body>
</html>