logged_in){ echo "

Registered

"; echo "

We're sorry $session->username, but you've already registered. " ."Main.

"; } /** * The user has submitted the registration form and the * results have been processed. */ else if(isset($_SESSION['regsuccess'])){ /* Registration was successful */ if($_SESSION['regsuccess']){ echo "

Registered.

"; echo "

An email was dispatched to your inbox, ".$_SESSION['reguname']." -- click the validation link therein, then you may login.

"; } /* Registration failed */ else{ echo "

Registration Failed

"; echo "

Sorry, things didn't work out.
Try again later.

"; } unset($_SESSION['regsuccess']); unset($_SESSION['reguname']); } /** * The user has not filled out the registration form yet. * Below is the page with the sign-up form, the names * of the input fields are important and should not * be changed. */ else{ ?>

Register

num_errors > 0){ echo "".$form->num_errors." error(s) found"; } ?>
First Name:">error("fname"); ?>
Last Name:">error("lname"); ?>
Gender:
Mobile:">error("phone"); ?>
ECE Degree Level:
ECE Concentration:
Website:">error("site"); ?>
AndrewID:">error("user"); ?>
Create Password:">error("pass"); ?>
Confirm:">error("pass"); ?>