| @@ -3,14 +3,16 @@ | |||||
| <head> | <head> | ||||
| <link rel="stylesheet" type="text/css" href="style.css"> | <link rel="stylesheet" type="text/css" href="style.css"> | ||||
| <?php | <?php | ||||
| session_start(); | |||||
| if (session_status() == PHP_SESSION_NONE) { | |||||
| session_start(); | |||||
| } | |||||
| include_once ('connect.php'); | include_once ('connect.php'); | ||||
| $newuser = $_POST['reguser']; | |||||
| //$newuser = $_POST['reguser']; | |||||
| $con = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); | $con = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); | ||||
| if ($con->connect_errno){ | if ($con->connect_errno){ | ||||
| die ('Unable to connect to database [' . $db->connect_errno . ']'); | die ('Unable to connect to database [' . $db->connect_errno . ']'); | ||||
| } | } | ||||
| if (is_null($newuser)){ | |||||
| if (empty($_POST['reguser'])){ | |||||
| // this block contains the code to fill out the form | // this block contains the code to fill out the form | ||||
| echo '<center>'; | echo '<center>'; | ||||
| include_once ('includes/account-registration.php'); | include_once ('includes/account-registration.php'); | ||||