-
Notifications
You must be signed in to change notification settings - Fork 1
/
recoverpasswordparent.php
50 lines (49 loc) · 2.1 KB
/
recoverpasswordparent.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
<?php
$error=$_GET['ErrorID'];//posting it to a variable after checking is it numeric or not
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Recover Password</title>
<link rel="stylesheet" type="text/css" href="css/loginstyle.css" />
<link rel="shortcut icon" href="images/favicon.ico" /><!-- inserting the favicon for the site -->
<script src="js/login/modernizr.custom.63321.js"></script>
<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
</head>
<body>
<div class="container">
<header>
<h1><strong>MSIS</strong> Recover Password</h1> <!--Heading of the Page -->
<h2>Password Recovery for Parents</h2> <!-- User Types who can login through this form -->
</header>
<section class="main"> <!--main panel of the page -->
<form class="form-1" method="POST" action="recover_passwordparent_action.php">
<p class="field"> <!--username field -->
<input type="text" name="userRegisterationNumber" id="userRegisterationNumber" placeholder="Enter Registeration Number" required/>
<i class="icon-user icon-large"></i> <!-- user logo -->
</p>
<span><font color="grey">Format: FA09-BCS-015 (All Capital)</font></span>
<br/><br/>
<p>
<font color="red">
<?php if(is_numeric($error) && $error==1)
echo "Error: Invalid Registeration Number!";
if($error==2 && is_numeric($error))
echo "Error: Empty fields are not allowed!";
if($error==5 && is_numeric($error))
echo "Success: Password has been emailed.";
?>
</p>
<p class="submit">
<button type="submit" name="submit"><i class="icon-arrow-right icon-large"></i></button> <!-- Submit Form Button -->
</p>
<p align="center">
<a href="studentlogin.php"><input class="GoButton" type="button" value="GoBack"/></a>
</p>
</form>
</section>
</div>
</body>
</html>