Any direction would be great. Thanks in advance.
I believe that the B[/B] has to be installed somewhere with the else if (md5($code) == $_SESSION['image_random_value']) to facilitate setting of the error. Having difficulty making progress with this aspect of the validation!
Captcha control as follows from the validate.php:
public function validateCode($codeVal, $codeName) {
if (strlen($codeVal) <= 0) {
$this->setError($codeName, "Enter Validate Code");
} else if (md5($code) == $_SESSION['image_random_value']) {
$this->setError($codeName, "Valid Code Required");
}
}
Captcha panel visible to visitor as follows from the contact.php:
<fieldset>
<legend>Validate Form <span class="errors"><?php echo $codeErr ?></span></legend>
<span class="required">Required</span>
<center>
<img src="randomImage.php" alt="Captcha Image"/>
<input type="text" name="code" class="data"/>
<!--Refresh Validate Code Button Facility-->
<div id="flip"><a href onclick="history.go()" class="link" alt="Refresh Code" /></a></div>
</center>
</fieldset>
and it looks like the visitorView.jpg image attached.