|
|
|
@@ -3,14 +3,16 @@ |
|
|
|
<head> |
|
|
|
<link rel="stylesheet" type="text/css" href="style.css"> |
|
|
|
<?php |
|
|
|
session_start(); |
|
|
|
if (session_status() == PHP_SESSION_NONE) { |
|
|
|
session_start(); |
|
|
|
} |
|
|
|
include_once ('connect.php'); |
|
|
|
$newuser = $_POST['reguser']; |
|
|
|
//$newuser = $_POST['reguser']; |
|
|
|
$con = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); |
|
|
|
if ($con->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 |
|
|
|
echo '<center>'; |
|
|
|
include_once ('includes/account-registration.php'); |
|
|
|
|