-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsignup.php
62 lines (55 loc) · 2.37 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
<html>
<head>
<script src="./js/sign.js" type="text/javascript"></script>
</head>
<form name="register" method="post" action="./signingup.php">
<table border="0" width="500" align="center" class="demo-table">
<tr><td>Team name</td>
<td><input type="text" class="demoInputBox" name="teamName" value=""></td>
</tr>
<tr><td>College Name</td>
<td><input type="text" class="demoInputBox" name="collegeName" value=""></td>
</tr>
<tr><td>Mobile Number</td>
<td><input type="text" class="demoInputBox" name="pNumber" value=""></td>
</tr>
<tr><td>Password</td>
<td><input type="password" class="demoInputBox" name="password" value=""></td>
</tr>
<tr><td>Confirm Password</td>
<td><input type="password" class="demoInputBox" name="cpassword" value=""></td>
</tr>
<tr><td>Email</td>
<td><input type="text" class="demoInputBox" name="userEmail" value=""></td>
</tr>
<tr><td>Language</td>
<td><input type="radio" name="lang" value="C" checked>C
<input type="radio" name="lang" value="C++" > C++
</td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="terms"> I accept Terms and Conditions</td>
</tr>
</table>
<div><input type="submit" name="submit" value="Register" class="btnRegister"></div>
</form>
<script type="text/javascript">
var frmvalidator = new Validator("register");
//frmvalidator.EnableOnPageErrorDisplaySingleBox();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("password","req","password is required");
frmvalidator.addValidation("password","maxlen=40","password cannot exceed 11");
frmvalidator.addValidation("cpassword","eqelmnt=password","The confirmed password is not same as password");
frmvalidator.addValidation("teamName","req","Please enter your Team Name");
frmvalidator.addValidation("teamName","maxlen=20","Max length for Team is 20");
frmvalidator.addValidation("collegeName","req","Please enter your college name");
frmvalidator.addValidation("userEmail","maxlen=40","emailid cannot exceed 40");
frmvalidator.addValidation("userEmail","req","Please enter your email id");
frmvalidator.addValidation("userEmail","email","Please enter a valid emailid");
frmvalidator.addValidation("pNumber","maxlen=10");
frmvalidator.addValidation("pNumber","numeric","Please enter valid number");
frmvalidator.addValidation("Terms","dontselectchk=y","Please select an option from 'Agree to Terms'");
</script>
</body>
</html>