-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormMail_GF.htm
50 lines (46 loc) · 1.94 KB
/
FormMail_GF.htm
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
<html>
<head>
<title>Simple jQuery Contact Form With Validation PP</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link rel="stylesheet" href="css/contact_form.css" />
<script src="contact_form.js"></script>
<script type="text/javascript">var submitted=false;</script>
<script type="text/javascript">
$('#gform').on('submit', function(e) {
$('#gform *').fadeOut(2000);
$('#gform').prepend('Richiesta inviata...');
});
</script>
</head>
<body>
<div id="mainform">
<h2>Simple jQuery Contact Form With Validation</h2>
<!-- Required Div Starts Here -->
<!-- <form id="form">
<h3>Contact Form</h3>
<p id="returnmessage"></p>
<label>Name: <span>*</span></label>
<input type="text" id="name" placeholder="Name"/>
<label>Email: <span>*</span></label>
<input type="text" id="email" placeholder="Email"/>
<label>Contact No: <span>*</span></label>
<input type="text" id="contact" placeholder="10 digit Mobile no."/>
<label>Message:</label>
<textarea id="message" placeholder="Message......."></textarea>
<input type="button" id="submit" value="Send Message"/>
</form>
-->
<form name="gform" id="gform" enctype="text/plain" action="https://docs.google.com/forms/d/e/1FAIpQLScEY11cgPBGv6Bt6Zp0CQJGOLSJER4coKgQRkzsWibuejp7MQ/formResponse" target="hidden_iframe" onsubmit="submitted=true">
<h3>Contact Form PP1</h3>
<label>Name: <span>*</span></label>
<input type="text" name="entry.1102975310" id="entry.1102975310" placeholder="Name"/>
<label>Email: <span>*</span></label>
<input type="text" name="entry.1196832965" id="entry.1196832965" placeholder="xx@xx.xx"/>
<label>Messaggio: <span>*</span></label>
<textarea name="entry.702403180" id="entry.702403180" placeholder="Messaggio ..."/></textarea>
<input type="button" id="submit" value="Invia"/>
</form>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {}"></iframe>
</div>
</body>
</html>