reSIProcate/repro  9694
forgotpassword.php
Go to the documentation of this file.
00001 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00002 
00003 <!--
00004 System:  Repro
00005 File: forgotpassword.php
00006 Purpose: Reset password & email to address on file for the user
00007 Author: S. Chanin
00008 -->
00009 <html>
00010 <head>
00011 <link rel="stylesheet" type="text/css" href="repro_style.css" />
00012 <title>Forgot Password</title>
00013 </head>
00014 
00015 <body>
00016 <h1 class="title">Repro</h1>
00017 
00018 <h1>Forgot Password</h1>
00019 <hr />
00020 
00021 <!-- if we've looped back due to an error, show the message -->
00022 <?php
00023 if (isset($_GET["error"])) {
00024         echo '<p class="error">' . $_GET["error"] . "</p>\n";
00025 }
00026 ?>
00027 
00028 <p>If you have forgotten your password, please enter your email address below
00029 and the system will generate a new password for you and email that password
00030 to you.</p>
00031 
00032 <form action="generatepassword.php" method="post">
00033 <table>
00034 <tr>
00035 <td>Username:</td>
00036 <td><input type="text" name="username" id="username" value="<?php echo $_GET['username']; ?>" /></td>
00037 </tr>
00038 
00039 <tr>
00040 <td>Email address:</td>
00041 <td><input type="text" name="email" id="email" value="<?php echo $_GET['email']; ?>" /></td>
00042 </tr>
00043 
00044 <tr>
00045 <td>&nbsp</td>
00046 <td><input type="submit" name="submit" id="submit" value="Reset Password" />
00047 </tr>
00048 </table>
00049 </form>
00050 
00051 <br /><hr />
00052 <a href="index.php">Return to Welcome Page</a>
00053 <br />
00054 </body>
00055 </html>