-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.html
128 lines (102 loc) · 3.52 KB
/
registration.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Registration</title>
</head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!--javascript-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<style>
body, html {
height: 100%;
font-family: Arial, Helvetica, sans-serif;
background-color:#CCCCFF;
}
* {
box-sizing: border-box;
}
.bg-img {
/* The image used */
/* Center and scale the image nicely */
position: absolute;
margin-left:30%;
margin-right:30%;
width: 300px;
}
/* Add styles to the form container */
.container {
position: absolute;
margin: 20px;
width: 300px;
padding: 16px;
background-color: white;
}
/* Full-width input fields */
input[type=text], input[type=password],input[type=date],input[type=email],input[type=number],input[type=tel] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
border: none;
background: #f1f1f1;
}
input[type=text]:focus, input[type=password]:focus,input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=tel]:focus {
background-color: #ddd;
outline: none;
}
/* Set a style for the submit button */
.btn {
background-color: #4CAF50;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
.btn:hover {
opacity: 1;
}
.o
{
background-color:orange;
width:100%;
height:20%;
margin-top:0;
color:white;
}
.r
{
text-align:center;
color:#630000;
}
</style>
</head>
<body>
<div class="o"><h1 style="text-align:center">Online Voting System</h1></div>
<div class="bg-img">
<form action="registration" method="post" class="container">
<h1 class="r">Register</h1>
<b>Name:</b><br>
<input type="text" placeholder="Enter First Name" name="fname" required><span class="validity"></span>
<b>Voter Card Number:</b><br>
<input type="number" placeholder="Enter Voter Card Number" name="cardno" required><span class="validity"></span>
<b>Contact Number:</b><br>
<input type="tel" placeholder="Enter Contact Number" name="cono" required><span class="validity"></span>
<br>
<b>Address:</b><br>
<input type="text" placeholder="Enter Address" name="add" required><span class="validity"></span>
<b>Date Of Birth:(YYYY/MM/DD)</b><br>
<input type="date" placeholder="Enter Date Of Birth" name="dob" required><span class="validity"></span>
<b>Email:</b><br>
<input type="email" placeholder="Enter Email address" name="email" required><span class="validity"></span>
<b>Enter Pin:</b><br>
<input type="password" placeholder="Enter 4 digit Pin to set" name="pin" required><span class="validity"></span>
<button type="submit" class="btn" name="button">Register</button>
</form>
</div>
</style>
</body>
</html>