【php开源代码栏目提醒】:网学会员在php开源代码频道为大家收集整理了forgot_passwd.php提供大家参考,希望对大家有所帮助!
<?php
require_once("bookmark_fns.php");
do_html_header("Resetting password");
// creating short variable name
$username = $_POST['username'];
try
{
$password = reset_password($username);
notify_pass
word($username, $password);
echo 'Your new password has been emailed to you.<br />';
}
catch (Exception $e)
{
echo 'Your password could not be reset - please try again later.';
}
do_html_url('login.php', 'Login');
do_html_footer();
?>