"; } if (!isset($_POST['lname']) || $_POST['lname'] == '') { $err.="Please enter your last name
"; } if ((!isset($_POST['mail'])) || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $_POST['mail']))) { $err.="Please enter a valid email address
"; } if (!isset($_POST['password']) || $_POST['password']=='') { $err.="Please enter your password
"; } if (!isset($_POST[r1])) { $err.="Please choose your age
"; } elseif ( ($_POST['r1']==2) && (!isset($_POST['rr']) || $_POST['rr'] == '') ) { $err.="Please enter Parent/Guardian Name
"; } if ($err == "") { $res=db_arr("select * from members where email='".$_POST['mail']."'"); if ($res) { $err.="Member with sucn email is already exists. Please choose another one.
"; } else { mysql_query("insert into members set fname='".$_POST['fname']."',lname='".$_POST['lname']."', email='".$_POST['mail']."', password='".$_POST['password']."', age='".$_POST['r1']."', parentname='".$_POST['rr']."', regdate=NOW()"); $subject = "Registration Confirmation "; $headers1 = "From: contact@willow-school.com\nContent-type: text/html;"; $message="Dear ".$_POST['fname']." ".$_POST['lname']."

Thank you for becoming Willow High School student.
We hope you'll successfully pass the Willow School Equivalency Test and will be entitled to receive Willow High School Diploma.
Good luck!

---------------------------
www.willow-school.com

Registration info
---------------------------
Your first name: ".$_POST['fname']."
Your last name: ".$_POST['lname']."

Use your Email address (".$_POST['mail'].") as login
Your password: ".$_POST['password']."
---------------------------

Best Regards,

Willo High School Staff
"; mail($_POST['mail'], $subject, $message, $headers1); echo ""; } } } ?> Take the future in your hands

'.$err.'
'; } ?> With a High School Diploma you can change your life forever and get everything you have ever dreamt about. We at Willow High School offer you to start improving your life right now and wish you the best of success.

First Name: ">
Last Name: ">
Email: ">
Password: 
I am 18 years of age or older.
I younger than 18 and have parental consent.
Parent/Guardian Name: