"; } } // 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 email=" . "'" . $_SESSION[email] . "'"; $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 UserID sendEmail ($_SESSION[email], $DEFAULTEMAILFROM, "Your User ID" , "Your Harmonic Vision account User ID is: " . mysql_result($res, 0, 0)); // display the forgotUserIDfinish page header("Location: forgotUserIDfinish.php"); exit; } else { $_SESSION[errors] = "the email address you provided is not currently registered"; } } // close database mysql_close($dbconnect); } } } else { $_SESSION[errors] = ""; $_SESSION[fieldErrors] = ""; } ?> Correlations - Forgot User ID


Required fields are missing
please complete the fields and try again

' . $_SESSION[fieldErrors] . '

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

' .$_SESSION[errors] . '

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