-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSignUp.php
242 lines (241 loc) · 8.04 KB
/
SignUp.php
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html lang="en">
<head>
<title>e-ELECTION</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.0/css/bootstrapValidator.min.css"/>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.0/js/bootstrapValidator.min.js"> </script>
<script>
$(document).ready(function() {
$('#validateform').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
firstname: {
validators: {
notEmpty: {
message: 'First name is required and cannot be empty'
}
}
},
lastname: {
validators: {
notEmpty: {
message: 'Last name is required and cannot be empty'
}
}
},
email: {
validators: {
notEmpty: {
message: 'Email address is required and cannot be empty'
},
emailAddress: {
message: 'Please supply a valid email address'
}
}
},
remail: {
validators: {
notEmpty: {
message: 'Alternative Email address is required and cannot be empty'
}
}
},
password: {
validators: {
notEmpty: {
message: 'Password is required and cannot be empty'
},
stringLength: {
min: 8,
message: 'Your password must be at least 8 characters long'
}
}
},
confirmpassword: {
validators: {
notEmpty: {
message: 'Confirm password is required and cannot be empty'
},
stringLength: {
min: 8,
message: 'Your password must be at least 8 characters long'
},
identical: {
field: 'password',
message: 'The password and its confirm are not the same'
}
}
},
gender:{
validators: {
notEmpty: {
message: 'Gender is required and cannot be empty'
}
}
},
course:{
validators: {
notEmpty: {
message: 'Course is required and cannot be empty'
}
}
},
division:{
validators: {
notEmpty: {
message: 'Division is required and cannot be empty'
}
}
},
dob:{
validators: {
notEmpty: {
message: 'Date Of Birth is required and cannot be empty'
}
}
},
mobileno:{
validators: {
notEmpty: {
message: 'Mobile Number is required and cannot be empty'
}
}
}
}
});
});
</script>
<style>
.example3 .navbar-brand {
height: 80px;
}
.example3 .nav >li >a {
padding-top: 30px;
padding-bottom: 30px;
}
.navbar-default .navbar-nav>li>a:hover {
color: #61CDF5 !important;
border-bottom:1px solid #61CDF5;
}
.example3 .navbar-toggle {
padding: 10px;
margin: 25px 15px 25px 0;
}
.navbar-custom{
background-color:white;
}
.navbar-default .navbar-nav>li>.contact:hover{
color:gold !important;
border-bottom:1px solid gold;
}
.navbar-default .navbar-nav>li>.about-us:hover{
color:lightgreen !important;
border-bottom:1px solid lightgreen;
}
.navbar-default .navbar-nav>li>.chooseus:hover{
color:red !important;
border-bottom:1px solid red;
}
</style>
</head>
<body>
<div class="example3">
<nav class="navbar navbar-default navbar-custom navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand"><img src="Icons/Logo.png" alt="Election">
</a>
</div>
</div>
</nav>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<div class="jumbotron" style="background-color:#61CDF5;color:white">
<div class="row">
<div class="col-sm-12">
<div class="container-fluid bg-3 text-center">
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<center><h1>SIGN UP</h1></center>
<form id="validateform" name="signup" method="post" action="SignUpControl.php">
<div class="form-group">
<input type="text" class="form-control" name="firstname" placeholder="Enter your First Name">
</div>
<div class="form-group">
<input type="text" class="form-control" name="lastname" placeholder="Enter your Last Name">
</div>
<div class="form-group">
<input type="text" class="form-control" name="email" class="textsize" id= "email" placeholder="Enter your VES Email ID ONLY">
</div>
<div class="form-group">
<input type="text" class="form-control" name="remail" id ="remail" class="textsize" placeholder="Enter your Alternative Email ID ">
</div>
<div class="form-group">
<input type="password" class="form-control" id="password" class="textsize" name="password" placeholder="Enter your Password">
</div>
<div class="form-group">
<input type="password" class="form-control" id="password" class="textsize" name="confirmpassword" placeholder="Confirm your Password">
</div>
<div class="form-group">
<select name="gender" class="form-control">
<option value="" selected>Select your Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group">
<select name="course" class="form-control">
<option value="" selected>Select Course</option>
<option value="Comp">Computer Engineering</option>
<option value="Inft">Information Technology</option>
<option value="Extr">Electonics</option>
<option value="Extc">Electronics and Telecommunication</option>
<option value="Instru">Instrumentation</option>
<option value="HS">Humanities and Science</option>
</select>
</div>
<div class="form-group">
<select name="division" class="form-control">
<option value="" selected>Select Division</option>
<option value="fe">F.E</option>
<option value="se">S.E</option>
<option value="te">T.E</option>
<option value="be">B.E</option>
</select>
</div>
<div class="form-group">
<input name="dob" id="dob" class="form-control" placeholder="Enter your DOB" onfocus="(this.type='date')" onfocusout="(this.type='text')" >
</div>
<div class="form-group">
<input type="text" minlength="10" pattern="[0-9]{10}" class="form-control" name="mobileno" class="textsize" id="mobileno" placeholder="Enter your Mobile Number eg.,+91" >
</div>
<div class="form-group">
<button type="submit" class="btn btn-success btn-block" name="submitButton">Sign Up</button>
</div>
<div class="form-group">
<label>Already a Member? <a href="Index.php">Log In<a></label>
</div>
</form>
<div class="col-sm-4"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('Footer.html');?>
</body>
</html>