-3

trying to make a sign up page but when someone signs in an error comes, why? line(s): 12.

if (empty($username) || empty($password) || empty($passwordrepeat)) {
header("Location: ../signup.php?error=emptyfeilds&".$username)
exit(); // <-- Here!
Sirana
  • 1
  • you need to add `semicolon` after `header` line `header("Location: ../signup.php?error=emptyfeilds&".$username);` – Joseph Jan 05 '20 at 13:14

1 Answers1

0

You can try like this -

// You should add ';' after header function

if (empty($username) || empty($password) || empty($passwordrepeat)) {
header("Location: ../signup.php?error=emptyfeilds&".$username);
exit(); // <-- Here!
}
Hitesh Kumar
  • 383
  • 2
  • 6