-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgoogle_form_example.html
More file actions
33 lines (25 loc) · 982 Bytes
/
google_form_example.html
File metadata and controls
33 lines (25 loc) · 982 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Html form</title>
</head>
<h1>Submitting to a Google form</h1>
<h3>Without redirection</h3>
<body>
<form action="https://docs.google.com/forms/d/16faBBpyeqEBbHDyhM2K6s0i6UXBckz9vOQGwKrJKyN0/formResponse" method="POST">
<input type="text" name="entry.1087713693">
<input type="text" name="entry.1239878056">
<input type="submit" name="submit" value="Submit">
</form>
<h3>With redirection</h3>
<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe"
style="display:none;" onload="if(submitted)
{window.location='thanks.html';}"></iframe>
<form action="https://docs.google.com/forms/d/16faBBpyeqEBbHDyhM2K6s0i6UXBckz9vOQGwKrJKyN0/formResponse" method="POST" target="hidden_iframe" onsubmit="submitted=true;">
<input type="text" name="entry.1087713693">
<input type="text" name="entry.1239878056">
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>