-
Notifications
You must be signed in to change notification settings - Fork 5
/
reg.php
42 lines (42 loc) · 984 Bytes
/
reg.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
<?php
$err = $_GET['err'];
$err_msg = "";
if($err!="") {
switch($err) {
case 0: $err_msg = "Incomplete form";
break;
case 1: $err_msg = "Passwords donot match";
break;
case 2: $err_msg = "Already registered or try different username";
break;
default:$err_msg = "";
break;
}
}
?>
<html>
<body>
<table>
<form action='submit.php' method="POST" >
<tr>
<td>Username: </td><td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Enrollment no: </td><td><input type='text' name='enroll' /></td>
</tr>
<tr>
<td>Password: </td><td><input type='password' name='pass' /></td>
</tr>
<tr>
<td>Re-Password: </td><td><input type='password' name='re-pass' /></td>
</tr>
<tr>
<td></td><td><input type='submit' value='Register' /> or <a href = 'index.php' >Login</a></td>
</tr>
<tr>
<td></td><td><span id='err_submit' style='color:red; font-size:12px;'><?php echo $err_msg; ?></span></td>
</tr>
</form>
</table>
</body>
</html>