-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_getinfo.html
35 lines (35 loc) · 1.11 KB
/
example_getinfo.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
<html>
<head>
<title>Register your own Planet Junkmail account</title>
<script type="text/javascript" src="js/params.js"> </script>
</head>
<body>
<h1>Planet Junkmail</h1>
<h2>Registration</h2>
<p>Register now, and be the first to hear about all our
spectacular deals on our unique products!</p>
<form name="userinfo" method="GET" action="example_getinfo.html">
<p>Name: <input type="text" name="name"/></p>
<p>E-Mail: <input type="text" name="email"/></p>
<p>Sex: <select name="sex">
<option>Male</option>
<option>Female</option>
<option>Other</option>
</select></p>
<p><input name="send" type="button" value="Send!"/></p>
</form>
<script type="text/javascript">
(function() {
var params = getParams();
var found = false;
for (var n in params) {
if (!found) {
document.write("<h2>Parameters</h2>");
found = true;
}
document.write(n + ": <b>" + params[n] + "</b><br/>");
}
})();
</script>
</body>
</html>