}
else {
$Last = $_POST["Last"];
$First = $_POST["First"];
$Password = $_POST["Password"];
$Email = $_POST["Email"];
$where = "Where Last = '". $Last ."' AND First = '". $First ."'";
$query = "SELECT * FROM jscript ". $where;
$conn = @mysql_connect("localhost", "islander", "parvenu") or die(mysql_error());
$db = @mysql_select_db("javascript", $conn) or die(mysql_error());
$rsStudent = @mysql_query($query, $conn);
if (!mysql_num_rows($rsStudent)) {
mysql_free_result($rsStudent);
mysql_close($conn);
$errMsg1 = "Your Name was not found in the Database. ";
$errMsg2 = "This probably happened because the First Name did not match up. ";
$errMsg3 = 'The information has been emailed to me so that I can fix the "problem". ';
$errMsg4 = 'I will email you to tell you that the problem has been fixed.';
/*************** Mail ***************/
$message = "";
$message .= "NAME: ". $First ." ". $Last ."\n";
$message .= "PASSWORD: ". $Password ."\n";
$message .= "EMAIL: ". $Email;
$to = "frank@sislands.com";
$subject = "Account Setup Problem";
$from = "From: jscript@sislands.com";
mail($to, $subject, $message, $from);
/*************** EOF Mail ***************/
?>