Fixed redirect to profile page after going back 1 page

This commit is contained in:
Joey Lai
2017-01-20 16:01:08 +01:00
parent 15a3640eea
commit e17a55e82d
4 changed files with 14 additions and 14 deletions

View File

@@ -9,7 +9,9 @@
<body>
<?php
session_start();
if(isset($_SESSION["userID"])){
header("location: profile.php");
}
// define variables and set to empty values
$name = $surname = $bday = $username = $password = $confirmpassword = $location = $housenumber = $email = "";
$genericErr = $nameErr = $surnameErr = $bdayErr = $usernameErr = $passwordErr = $confirmpasswordErr = $locationErr = $housenumberErr = $emailErr = "";
@@ -27,7 +29,7 @@
} else {
$bday = test_input($_POST["bday"]);
}
g
checkInputChoice("username", "username");
checkInputChoice("password", "longerEight");
checkInputChoice("confirmpassword", "");