You must login to view this page"); else { showForm(); } function showForm() { $newcustomer = (isset($_REQUEST['newcustomer'])) ? true : false; if(!$newcustomer) { $sql = "SELECT * FROM Rest_Customer WHERE $ID = " . $_SESSION['custID']; $res = mysql_query($sql) or die("Failed at query: '$sql' " . mysql_error()); $custData = mysql_fetch_assoc($res); } ?>

Edit your info below

First Name:

Last Name:

Phone:

Password:

Choose your gender below:
> Male
> Female
"; if($_REQUEST['insert']){ $id = mysql_insert_id(); $_SESSION['custID'] = $id; print "Your Customer ID is " . $id . "
"; } print "Home"; }