Hi all,
Wondering whats' going on here:
$_POST['verify_code'] does have some text assigned to it.
if ($_POST['verify_code'] != "") {
include_once ('verify.php');
$verify = new VerifyIt();
if ($verify->check($_POST['verify_code']) == false) { <-- THIS IS THE LINE IT ERRORS ON
$criticalError .= "Error - The verification text entered did not match. Please try again.<br>";
}
} else {
$criticalError .= "Error - You must enter the verification text ...blah.<br>";
}
The relavent code in verify.php:
class VerifyIt
{
[i][snip][/i]
public function check($code)
{
$this->code_entered = $code;
$this->validate();
return $this->correct_code;
}
[i][snip][/i]
}
Error is gives:
Fatal error: Call to a member function check() on a non-object in ...
Why would it say check() is a non object, when prior to that line I'm instantiating it: $verify = new VerifyIt();