function emptyInputSignup($name, $email, $username, $pwd, $pwdrepeat) {
$result;
if (empty($name) || empty($email) || empty($username) || empty($pwd) || empty($pwdrepeat)) {
$result = true;
}
else {
$result = false;
}
return $result;
}
It keeps returning this Undefined variable '$result'. Below is the full error message. I also add an image. [{ "resource": "/c:/xampp/htdocs/FeedCalculator/includes/functions.inc.php", "owner": "generated_diagnostic_collection_name#1", "code": "1008", "severity": 8, "message": "Undefined variable '$result'.", "source": "intelephense", "startLineNumber": 4, "startColumn": 5, "endLineNumber": 4, "endColumn": 12 }]
The code and error as seen in vs
Thanks, it is working now. I got rid of the first $result and did some other minor tweaks. Its been 3 days so I do not remember, but thank you for being helpful!