-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
68 lines (60 loc) · 2.58 KB
/
index2.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
<div class="container">
<div class="photo-slider">
<div class="slider-image active" style="background-image: url('https://e1.pxfuel.com/desktop-wallpaper/830/939/desktop-wallpaper-pin-on-naruto-and-naruto-shippuden-naruto-hinata-wedding.jpg')"></div>
<div class="slider-image" style="background-image: url('https://picsum.photos/id/1015/1920/1080')"></div>
<div class="slider-image" style="background-image: url('https://picsum.photos/id/1016/1920/1080')"></div>
</div>
<form method="post" action="http://127.0.0.1:5500/index3.html">
<link rel="stylesheet" href="styleee2.css">
<h1>BOOK NOW </h1>
<div class="form-row">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-row">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-row">
<label for="phone">Phone</label>
<input type="tel" id="phone" name="phone" required>
</div>
<div class="form-row">
<label for="event-type">Event Type</label>
<select id="event-type" name="event-type" required>
<option value="">Select an option</option>
<option value="wedding">Wedding</option>
<option value="birthday">Birthday</option>5
<option value="other">Other</option>
</select>
</div>
<div class="form-row">
<label for="date">Date</label>
<input type="date" id="date" name="date" required>
</div>
<div class="form-row">
<label for="message">Message</label>
<textarea id="message" name="message"></textarea>
</div>
<div class="form-row">
<p>NOTE: Advance payment is ₹3000</p>
<a href="http://127.0.0.1:5500/index3.html">
<button class="btn" onclick="sumbit" href="http://127.0.0.1:5500/index3.html">submit</button>
</a>
</form>
<script>
const form = document.querySelector('form');
const nameInput = document.querySelector('#name');
const emailInput = document.querySelector('#email');
form.addEventListener('submit', (e) => {
e.preventDefault();
const name = nameInput.value.trim();
const email = emailInput.value.trim();
if (name === '' || email === '') {
alert('Please fill out all fields');
} else {
window.location.href = 'http://127.0.0.1:5500/index3.html';
}
});
</script>
</div>