-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbookingRequestConfirmed.php
55 lines (39 loc) · 1.63 KB
/
bookingRequestConfirmed.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
<html>
<head>
<title>Thank You For Booking A Cab</title>
<!-- <meta http-equiv="refresh" content="3" URL="index.php"> -->
<meta http-equiv="refresh" content="5;url=index.php?username=<?php echo $uname?> ">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
</head>
<body>
<div class="container" style="margin-top:180px;margin-left: 200px" >
<div class="row" >
<div class="col-md-6">
<div class="text-center">
<br><br><br>
<h1 >Redirecting to main page....</h1>
<h3> In 5 seconds</h3>
</div>
</div>
<div class="col-md-6">
<img src="thanku.jpg" class="img responsive" style="height: 200px;width: 400px">
</div>
</div>
</div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
<?php
// the message
$name=$_GET['name'];
$email=$_GET['email'];
$from = $_GET['from'];
$to = $_GET['to'];
$msg = "Congratualation $name \n"."Your booing has been confirmed from $from to $to";
// send email
mail($email,"Booking Confirmed",$msg);
?>
<script>
window.location.href = "http://localhost/project/bookmycab/index.php";
</script>