-
Notifications
You must be signed in to change notification settings - Fork 1
/
reservation.html
119 lines (93 loc) · 4.42 KB
/
reservation.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About</title>
<link rel="stylesheet" href="reservation.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/f321571041.js" crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar1">
<h1 class="logo">HOTEL_MAX</h1>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="./reservation.html">Reservation</a></li>
<li><a href="./services.html">Services</a></li>
<li><a href="./aboutus.html">About us</a></li>
<li class="ctn"><a href="./aboutus.html#footer">Contact</a></li>
</ul>
<div class="dropdown">
<i class="fa-solid fa-bars" id="menu-icon"></i>
<div class="side-bar">
<ul class="navlist1" type="none">
<li><a href="#">Home</a></li>
<li><a href="./reservation.html">Reservation</a></li>
<li><a href="./services.html">Services</a></li>
<li><a href="./aboutus.html">About us</a></li>
<li><a href="./aboutus.html#footer">Contact</a></li>
</ul>
</div>
</div>
</nav>
<header>
<div class="form">
<form action="https://sheetdb.io/api/v1/sufwtwmk7mkvg" method="post" id="sheetdb-form">
<div class="container">
<h1>Booking Form</h1>
<p>Please fill in this form for booking process.</p>
<hr>
<label for="name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="data[name]" required>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="data[email]" required>
<div class="dates">
<label for="sdate"><b>Start Date :</b></label>
<input type="date" placeholder="Enter Start Date" name="data[sdate]" required>
<label for="edate"><b>End Date :</b></label>
<input type="date" placeholder="Enter End Date" name="data[edate]" required>
</div>
<div class="dates">
<label for="age"><b>Age :</b></label>
<input type="number" placeholder="Age" name="data[age]" required>
<label for="members"><b>Members :</b></label>
<input type="number" placeholder="Total Members" name="data[member]" required>
</div>
<div class="room">
<label for="room"><b>Room :</b></label>
<input type="number" placeholder="No of Room" name="data[room]" >
</div>
<br>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me
</label>
<p>By Filling your information you agree to our <a href="#" style="color:dodgerblue">Terms & Privacy</a>.</p>
<div class="clearfix">
<button type="button" class="cancelbtn">Cancel</button>
<button type="submit" class="signupbtn">Conform</button>
</div>
</div>
</form>
</div>
<script>
var form = document.getElementById('sheetdb-form');
form.addEventListener("submit", e => {
e.preventDefault();
fetch(form.action, {
method : "POST",
body: new FormData(document.getElementById("sheetdb-form")),
}).then(
response => response.json()
).then((html) => {
// you can put any JS code here
alert("Successfully Booked");
});
});
</script>
</header>
</body>
</html>