-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
69 lines (55 loc) · 2.35 KB
/
main.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
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vehicle Booking System</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Header -->
<header>
<h1>Vehicle Booking System</h1>
<img src="image/car.png" alt="Car Banner" class="banner-image">
</header>
<!-- Booking Form -->
<section class="booking-section">
<h2>Book Your Vehicle</h2>
<form action="php/process_booking.php" method="POST" id="bookingForm">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone Number:</label>
<input type="text" id="phone" name="phone" required>
<label for="vehicle">Select Vehicle:</label>
<select id="vehicle" name="vehicle" required>
<option value="Sedan">Sedan</option>
<option value="SUV">SUV</option>
<option value="Truck">Truck</option>
</select>
<label for="pickup_date">Pickup Date:</label>
<input type="date" id="pickup_date" name="pickup_date" required>
<label for="return_date">Return Date:</label>
<input type="date" id="return_date" name="return_date" required>
<button type="submit" class="submit-btn">Book Now</button>
</form>
</section>
<!-- Payment Section -->
<section class="payment-section">
<h2>Payment Details</h2>
<form action="php/process_payment.php" method="POST" id="paymentForm">
<label for="card_name">Name on Card:</label>
<input type="text" id="card_name" name="card_name" required>
<label for="card_number">Card Number:</label>
<input type="text" id="card_number" name="card_number" maxlength="16" required>
<label for="expiry_date">Expiry Date:</label>
<input type="text" id="expiry_date" name="expiry_date" placeholder="MM/YY" required>
<label for="cvv">CVV:</label>
<input type="text" id="cvv" name="cvv" maxlength="3" required>
<button type="submit" class="submit-btn">Make Payment</button>
</form>
</section>
<script src="js/script.js"></script>
</body>
</html>