0)) { $form_passes = FALSE; $form_error_message[] = "This email address is not in our database. Please try again."; } } if ($form_passes) { if (maj_send_forgotten_password($user_id)) { $content = "

Success

Your password has been emailed to you.

"; $content .= "

 

Return to the login page

"; $bottom_links=FALSE; $title = "Password sent"; include_once("$MAJ_include_path/code/display_page.php"); exit; } else { $form_error_message[]="Server error. Your email address was NOT sent to you. Please try again."; } } } $content = "

Forgot your password?

\n"; $content .= "

If you have forgotten your password, we can email it to you at "; $content .= "the email address we have on record for you.

"; $content .= "

Simply enter your email address below and click on \"Email me my password\".

"; if ($form_error_message) include("$MAJ_include_path/code/display_form_error_messages.php"); $content .= "
"; $content .= ""; $content .= " "; $content .= ""; $content .= "
Email address:
"; $content .= "

Return to the login page

"; $bottom_links=FALSE; $body_tag = "onLoad='window.document.email_password_form.emailaddr.focus();'"; include("$MAJ_include_path/code/display_page.php"); ?>