//Fill in the info they submitted. $rider->f_firstName = unFixQuotes($HTTP_POST_VARS["firstName"]); $rider->f_lastName = unFixQuotes($HTTP_POST_VARS["lastName"]); $pword = unFixQuotes($HTTP_POST_VARS["password"]); $verify = unFixQuotes($HTTP_POST_VARS["verify"]); $code = unFixQuotes($HTTP_POST_VARS["code"]); //Check for code word if (md5($code) != $RD_authCodeMD5) { $errMsg = "Invalid Code! No permission to create an account."; } //Check for password mismatch if (!$errMsg && $pword != $verify) { $errMsg = "Passwords do not match! Please enter them again."; } if (!$errMsg) { $errMsg = $rider->insertNew($pword); if (!$errMsg) { //Inserted, send them back to the front! $getVars["riderID"] = $rider->f_riderID; header("Location: {$RD_baseURL}/showRides.php" . encodeGet($getVars)); return; } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php echo S_SITE_TITLE . " New " . S_PERSON; ?>