";} if (!$passedUsername) {$errorMessage .= "No user name entered!
";} if ($errorMessage == "") { include("db_connect.php"); $passedUsername = $mysqli->real_escape_string($passedUsername); if (!$stmt = $mysqli->query("SELECT * FROM users WHERE username = '$passedUsername' && deleted != 'YES'")) { echo ("Error in SQL Statement" . $mysqli->error); } else { $row = $stmt->fetch_object(); if ($passedUsername == $row->username) { $code = $row->password . rand(1,9); $emailMessage = "$builtMessage1

https://www.$siteDomain/forgotPassword1.php?code=$code&email=$passedUsername

$companyName Support"; sendMail('Password Recovery', $emailMessage, $passedUsername); $message .= "A recovery email has been sent to the email address you have requested."; } else { $message .= "A recovery email has been sent to the email address you have requested!"; } } } } ?>

Forgot Password


Enter a valid email address.

RegisterLogin