-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpay.php
More file actions
55 lines (47 loc) · 1.87 KB
/
pay.php
File metadata and controls
55 lines (47 loc) · 1.87 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
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background: linear-gradient(to right,rgb(0, 0, 0),rgb(0, 245, 224),rgb(60, 255, 0));
color: white;
}
</style>
</head>
<body>
<?php
session_start();
$tickets = $_SESSION["tickets"];
$price=$_SESSION["price"];
$conn = new mysqli("localhost", "root", "", "movie_booking");
$pay=$tickets*$price;
echo "
<div style='width: 400px; margin: 20px auto; padding: 20px; border-radius: 10px; background-color: rgb(0, 0, 0);
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); font-family: Arial, sans-serif; text-align: center;'>
<h2 style='color:rgb(255, 255, 255); margin-bottom: 10px;'>🎟️ Booking Confirmation</h2>
<div style='border-top: 2px dashed #333; padding: 15px 0; margin: 10px 0;'>
<div><img src='pay.jpg' style='width:50%'></div>
<p>you will pay $pay</p>
<button type='submit' onclick='confirmPayment()' style='background-color: #dc3545; color: white; font-size: 16px;
font-weight: bold; padding: 10px 20px; border: none;
border-radius: 5px; cursor: pointer; transition: 0.3s;'>done</button>
<br><br>
<form action='canclebook.php'>
<button type='submit' style='background-color: #dc3545; color: white; font-size: 16px;
font-weight: bold; padding: 10px 20px; border: none;
border-radius: 5px; cursor: pointer; transition: 0.3s;'>cancle booking</button>
</div>
</form>
<script>
function confirmPayment() {
alert('✅Your booking is confirmed.');
alert('thank you for visit our sitet🙏');
window.location.href = 'home.php';
}
</script>";
?>
</body>
</html>