[Solved]I can't see what is wrong.
Posted: Sat Aug 28, 2010 7:25 am
Hi, i have this code which to me shoulld be perfect but i can't get it to work.
This is the error that the browser gives.
Chris
Code: Select all
private function isDataValid()
{
$tempVar = true;
$tempVar = isInputValid($this->_userMail); ///////// <- This is line 60
$tempVar = isInputValid($this->_userPassword);
return $tempVar;
}
private function isInputValid($tempVar)
{
if (empty($tempVar)) { return false; }
if (preg_match('[^a-zA-Z0-9+=@."]', $tempVar)) { return false; }
return true;
}
Many ThanksFatal error: Call to undefined function isInputValid() in / "site directory" /scripts/php/class/UserAccount.php on line 60
Chris