$gv) ${$gk} = $gv; require("mysqlConnection.php"); $db = new mysqlConnection(); $db->debug = TRUE; $db->setTable("contestants"); if ($email) { if ($db->exists("email", $email, "contestant_info")) { $id = $db->pullVal("uid", "email", $email, "contestant_info"); $u = $db->pullVal("username", "uid", "$id"); $p = $db->pullVal("password", "uid", "$id"); $n = $db->pullVal("firstname", "uid", $id, "contestant_info"); $b = "Dear $n,\n\nHere is your information for the Santa Anita contest:\n\nUsername: $u\nPassword: $p\n\nThank you\n\nSanta Anita Park"; mail("$email", "Santa Anita Park Contest", $b, "From: Santa Anita Park \n"); $err = "Your information has been emailed to '$email'"; } else { $err = "Sorry, but your email address was not found in the contestant database. Please register for the contest."; } } ?>

Email Password Reminder

Please enter your email address below to have your username and password emailed to you:

'. $err . '

'; } ?>
Email Address: