-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvoting.html
67 lines (57 loc) · 1.69 KB
/
voting.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
<!DOCTYPE html>
<html>
<head>
<script>
function validateForm()
{
var x=document.myform.voter_id.value;
var y=document.myform.OTP.value;
var num=/^[0-9]+$/;
if(!x.match(num))
{
alert("Incorrect Voter-Id");
return false;
}
if(y.length==0)
{
alert("Please Enter Your Password");
return false;
}
if(!y.match(num))
{
alert("OTP must contains only numbers");
return false;
}
}
</script>
<body>
<h3 style="background-color:GREEn;color:Yellow;font-size:300%;font-family:times new roman;text-align:center;"><b>Every Vote Counts</b></h3>
<body background="back/Presentation1.jpg">
<form action="real_vote.php" method="post" onsubmit="return validateForm()" name="myform">
<table border="10" cellspacing="20">
<p><b><span style="padding-left:20px"><h3>Existing User Login Here To Vote</h3></span> </b></p>
<tr>
<td width="100">Voter_Id</td>
<td><input name="voter_id" type="text"></td>
</tr>
<tr>
<td width="100">OTP</td>
<td><input name="OTP" type="password"></td>
</tr>
</table>
<table border = "0">
<tr>
<td width="190"></td>
<td><span style="padding-left:30px"><input name="validate_id" type="submit" value="Continue To Vote"></span></td>
</form>
<td width="500"></td>
<td><a href="register_user.html"><h2 style="font-size:30;">Register Here For New User!</h2></a>
</td>
</tr>
<tr>
<td><a href="main.html"><h2 style="font-size:30;">Back</h2></a>
</td>
</tr>
</table>
</body>
</html>