-
Notifications
You must be signed in to change notification settings - Fork 0
/
cancelbooking.php
66 lines (58 loc) · 1.44 KB
/
cancelbooking.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CANCEL BOOKING</title>
</head>
<body>
<style>
.form{
align-content: center;
margin-left: 350px;
margin-top: 150px;
}
.hai{
width: 200px;
height: 40px;
background: #ff7200;
border:none;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
color:#fff;
margin-left: 90px;
}
.no{
width: 200px;
height: 40px;
background: #ff7200;
border:none;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
color:#fff;
margin-left: 100px;
}
.no a{
text-decoration: none;
color: white;
}
</style>
<?php
require_once('connection.php');
session_start();
$bid = $_SESSION['bid'];
if(isset($_POST['cancelnow'])){
$del = mysqli_query($con,"delete from booking where BOOK_ID = '$bid' order by BOOK_ID DESC limit 1");
echo "<script>window.location.href='cardetails.php';</script>";
}
?>
<form class="form" method="POST" >
<h1>ARE YOU SURE YOU WANT TO CANCEL YOUR BOOKING?</h1>
<input type="submit" class="hai" value="CANCEL NOW" name="cancelnow">
<button class="no"><a href="payment.php" >GO TO PAYMENT</a></button>
</form>
</body>
</html>