I am creating a signup page and this error comes up in error log file every time I try to signup on the website.
Any ideas whats wrong here ? (code is below)
PHP Parse error: syntax error, unexpected token ";" in /opt/lampp/htdocs/projectphp/includes/functions.inc.php on line 6
Also I noticed that my text editor (sublime text) doesn’t highlight any variables except for the ones on line 3. Is that normal?
<?php
function emptyInputSignup($name, $surname, $email, $pwd, $pwdRepeat) {
$result;
if (empty($name) || (empty($surname) || (empty($email) || (empty($pwd) || (empty($pwdRepeat)) {
$result = true;
}
else {
$result = false;
}
return $result;
}