Any direction would be great. Thanks in advance.
I believe that the ($codeVal) 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:
PHP Code: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:
and it looks like the visitorView.jpg image attached.HTML Code:<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>


Reply With Quote

Bookmarks