-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatacollection.html
64 lines (53 loc) · 1.4 KB
/
datacollection.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Data Collection</title>
<style>
</style>
<script type="text/javascript">
function checkData()
{
if(document.data_collection.yourname.value == "" || document.data_collection.youremail.value == "")
{
alert("required");
return false;
}
else
{
return true;
}
if(document.data_collection.yourage.value < 20)
{
alert("less than 20");
return false;
}
else
{
return true;
}
} // checkData()
</script>
</head>
<body>
<div id="container">
<h1>Data Collection</h1>
<form name="data_collection" method="post" action="http://evc-cit.info/cgi-bin/echoform.cgi" onSubmit="return checkData();">
<div>
<label for="yourname">Please enter your name</label>
<input type="text" name="Name:" id="yourname">
</div>
<div>
<label for="youremail">Please enter your email</label>
<input type="email" name="Email:" id="youremail">
</div>
<div>
<label for="yourage">Please enter your age</label>
<input type="number" name="Age:" id="yourage">
</div>
<input type="submit" value="Click Here to Submit">
<input type="reset">
</form>
</div>
</body>
</html>