</div> <center> <div> <?php if (isset($_POST["submit-index"])) { header("Location:Index.php"); } if (isset($_POST["submit-registration"])) { require_once "Controller/DbConnection.php"; require_once "Controller/CreateAccount.php"; $db = new DbConnection_Controller(); $newAcct = new CreateAccount($_POST["email"]); if ($db->StartDbConnection()) { if (!$newAcct->CheckEmailIfExists($db->GetCon())) { $newAcct->GetUserData($_POST["fullname"], $_POST["sex"], $_POST["bday"], $_POST["pass"]); if ($newAcct->SaveNewAccount($db->GetCon())) { echo "success"; } } else { echo "Email is currently used by another user."; } } } ?> <h3>Create an Account</h3><hr> <form action="CreateAccount.php" method="POST"> <table> <tr> <td>Username:</td> <td><input type="text" name="fullname" placeHolder="@Username" id="username"></td> </tr>