"; } } // if all fields entered OK if ($_SESSION[fieldErrors] == "") { //=============== look up UserID and Password // connect to MySQL $_SESSION[dbConnect] = connectToDB($DB); if (!$_SESSION[dbConnect]) { // send email notification if connection fails sendEmail($DEFAULTEMAILTO, $DEFAULTEMAILFROM, "MySQL - connectToDB failed in " . $ME, ""); $_SESSION[errors] .= $DBERROR; } else { $sql="SELECT * FROM " . $TABLE . " WHERE UserID='" . $_SESSION[UserID] . "'"; $res=mysql_query($sql,$_SESSION[dbConnect]); if (!$res) { // send email notification of DB failure sendEmail ($DEFAULTEMAILTO, $DEFAULTEMAILFROM, "MySQL - failure" , $sql); $_SESSION[errors] = $DBERROR; } else { if (mysql_num_rows($res) > 0) { // send email to user with Password $_SESSION[email] = mysql_result($res, 0, 2); sendEmail ($_SESSION[email], $DEFAULTEMAILFROM, "Your Password" , "Your Harmonic Vision account Password is: " . mysql_result($res, 0, 1)); // display the forgotPasswordFinish page header("Location: forgotPasswordFinish.php"); exit; } else { $_SESSION[errors] = "the User ID you provided is not currently registered"; } } // close database mysql_close($dbconnect); } } } else // first time through { $_SESSION[errors] = ""; $_SESSION[fieldErrors] = ""; } ?> Correlations - Forgot Password

 

Required fields are missing
please complete the fields and try again

' . $_SESSION[fieldErrors] . '

'; } else { if ($_SESSION[errors] != "") echo '

' .$_SESSION[errors] . '

'; } ?>
Enter your user ID below. Click the "Continue" button.
We will email your password information to you.
 
User ID: