So,I have recently started my development for my website,and I want to create a login system for questions,comments etc.When I work on my "signup.inc.php" file, I get this error:"syntax error,unexpected '}' in (file location) on line 12".The problem is that,there's no '}' on line 12.
Here's the code:
if (isset($_POST['signup-submit'])) {
require 'dbh.inc.php';
$username = $_POST['uid'];
$email = $_POST['mail'];
$password = $_POST['pwd'];
$passwordRepeat = $_POST['pwd-repeat'];
if (empty($username) || empty($username) || empty($username) || empty($username)) {
header("Location: ../signup.php?error=emptyfields&uid=".$username."&mail=".$email);
}
}
If you have any questions,or want me to provide more info, leave a comment and I will try to answer as soon as I can.