<?php 
 
include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php"); 
 
 
$renew_password = new Access_user;
 
 
if (isset($_POST['Submit'])) {
 
    $renew_password->forgot_password($_POST['email']);
 
} 
 
$error = $renew_password->the_msg;
 
?>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
<title>Forgot password page example</title>
 
<style type="text/css">
 
<!--
 
label {
 
    display: block;
 
    float: left;
 
    width: 110px;
 
}
 
-->
 
</style>
 
</head>
 
 
<body>
 
<h2>Forgot your password/login?</h2>
 
<p>Please enter the e-mail address what you have used during registration.</p>
 
<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
 
  <label for="email">E-mail:</label>
 
  <input type="text" name="email" value="<?php echo (isset($_POST['email'])) ? $_POST['email'] : ""; ?>">
 
  <input type="submit" name="Submit" value="Submit">
 
</form>
 
<p><b><?php echo (isset($error)) ? $error : " "; ?></b></p>
 
<p> </p>
 
<!-- Notice! you have to change this links here, if the files are not in the same folder -->
 
<p><a href="<?php echo $renew_password->login_page; ?>">Start</a></p>
 
</body>
 
</html>
 
 
 |