'The value does not match' ); /** * Compares the given value with the captcha value * saved in session. Also sets the error message. * * @param $value The value to check * @return boolean True if valid false otherwise */ public function isValid($value) { if (isset($_SESSION['captcha']) && $value == $_SESSION['captcha']) { return true; } $this->addMessage(sprintf($this->_messageTemplates['not_match'], $value)); return false; } }