<html>
<body>
<?php
require_once('RainCaptcha.class.php');
$captcha = new RainCaptcha();
if(isset($_REQUEST['captcha'])) {
$isCaptchaCorrect = $captcha->checkAnswer($_REQUEST['captcha']);
if($isCaptchaCorrect) {
echo 'You have entered <strong>correct</strong> CAPTCHA code!';
}
else {
echo 'You have entered <strong>wrong</strong> CAPTCHA code! <a href="example_form.php">Please try again!</a>';
}
}
?>
</body>
</html>
|