diff --git a/includes/verifications.php b/includes/verifications.php index 24f4d06..b071058 100644 --- a/includes/verifications.php +++ b/includes/verifications.php @@ -30,20 +30,23 @@ function validateUsername($uname) { #################### # verifying the username doesn't already exist in the database -$username = mysqli_real_escape_string($con, $_POST['username']); -validateUsername($username); +if (!empty($_POST['username'])) { + $username = mysqli_real_escape_string($con, $_POST['username']); + validateUsername($username); +} #################### # verifying the e-mail address is in a valid format -$verifyemail = validateEmail($_POST['useremail']); -if (empty($verifyemail)) { - echo '