-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPage 2.html
More file actions
59 lines (51 loc) · 2.52 KB
/
Copy pathPage 2.html
File metadata and controls
59 lines (51 loc) · 2.52 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
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>Courier Service Booking</title>
<link rel="stylesheet" href="style_booking.css">
</head>
<body>
<div class="background">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#">Booking</a></li>
<li><a href="Main_Track.html">Track</a></li>
<li><a href="c.html">Contact</a></li>
<li><a href="#" style="color: rgb(195, 42, 25);">SSSD Courier Service</a></li>
<li><a href="#" id="sign-in">Sign In</a></li>
<li><a href="#" id="sign-up">Sign Up</a></li>
</ul>
</nav><br><br><br><br><br>
<div class="booking-form" >
<h2>Enter Item Details</h2>
<form id="bookingForm" onsubmit="return false;">
<label for="parcelItem">Parcel Item</label>
<input type="text" id="parcelItem" name="parcelItem" rows="3" required>
<label for="parcelDesc">Parcel Description:</label>
<textarea id="parcelDesc" name="parcelDesc" rows="3" required></textarea>
<label for="departure-date">Departure Date:</label>
<input type="date" name="departure-date" id="departure-date" required>
<br>
<button onclick="prevStep('Page 1.html')">Previous</button>
<button onclick="nextStep('Page 3.html')">Next</button>
</form>
<script>
function prevStep(prevPage) {
window.location.href = prevPage;
}
function nextStep(nextPage) {
sessionStorage.setItem('parcelDesc', document.getElementById('parcelDesc').value);
sessionStorage.setItem('parcelItem', document.getElementById('parcelItem').value); // Store the parcel item
window.location.href = nextPage;
}
</script>
</div>
</div>
</body>
</html>