\n"); $getEmail = mysql_query($getEmailQ); if(mysql_num_rows($getEmail) == 1) { $personName = mysql_result($getEmail,0,0) . " " . mysql_result($getEmail,0,1); $personPW = mysql_result($getEmail,0,2); // Mail it $theMessage = "Hello $personName,\n\nYour password has been requested from BrickFest.com.\n\nYour password for BrickFest is \"" . $personPW . "\". You can log in by going to http://www.brickfest.com and selecting the appropriate event.\n\nSincerely,\nThe BrickFest Staff\n"; $to = $emailAddr; #$to = "kelly@mckiernan.com"; // For testing #$headers .= "To: " . $personName . "\r\n"; $headers = "From: BrickFest \r\n"; $subj = "Password reminder from BrickFest"; mail($to, $subj, $theMessage, $headers); $errMsg = "Your password has been emailed to $emailAddr."; $showForm = false; } else { $errMsg = "Sorry, there was no match. Please try again."; $showForm = true; } } else { $showForm = true; } $thisSection = "white"; ?> BrickFest Account Password Reminder

Forgot your password?

Enter your email address that you signed up with and we'll send your password to that email.

Your Email: