-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact123.html
84 lines (73 loc) · 3.09 KB
/
contact123.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style4.css" />
</head>
<body>
<header class="header">
<img
src="f2.png"
alt="thapa technical logo"
class="logo"
/>
<nav class="navbar">
<ul class="navbar-list">
<li><a class="navbar-link" href="index.html">Home</a></li>
<li><a class="navbar-link" href="subsidy.html">Subsidies</a></li>
<li><a class="navbar-link" href="econew.html">Eco Farming</a></li>
<li><a class="navbar-link" href="fartilizer.html">Fartilizer</a></li>
<li><a class="navbar-link" href="contact.html">Contact Us</a></li>
<li><a class="navbar-link" href="photo.html">Photo</a></li>
<li><a class="navbar-link" href="shop.html">shop</a></li>
</ul>
</nav>
<div class="mobile-navbar-btn">
<ion-icon name="menu-outline" class="mobile-nav-icon"></ion-icon>
<ion-icon name="close-outline" class="mobile-nav-icon"></ion-icon>
</div>
</header>
<section>
<div class="container">
<form method="POST" name="google-sheet" id="my-form">
<div class="form-group">
<label for="firstName"> First Name</label>
<input type="text" name="first name" placeholder="Last Name" id="firstName" name="firstName">
</div>
<div class="form-group">
<label for="latsName">Last Name</label>
<input type="text" name="last name" placeholder="Last Name" id="lastName" name="lastName">
</div>
<div class="form-group">
<label for="mobile" >mobile no</label>
<input type="text" name="mobile" placeholder="Your mobile number" id="mobile" name="mobile">
</div>
<div class="form-group">
<label for="email" >Email</label>
<input type="email" name="email" placeholder="Your email" id="email" name="email">
</div>
<div class="form-group">
<label for="massage">Massage</label>
<textarea name="massage" placeholder="Message" id="massage" cols="30" rows="10"></textarea>
</div>
<button type="submit">Submit</button>
</form>
</div>
<div id="status"></div>
</section>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbyYBHs3LrNjt3DNtEAnbNBOyogBc9l3L4CVF0CFqgzXAs0Dof3JTh1-leysAJJ5ZDRJoA/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => alert("Thanks for Contacting us..! We Will Contact You Soon..."))
.catch(error => console.error('Error!', error.message))
})
</script>
</div>
</body>
</html>