Location: PHPKode > scripts > CF Captcha > cf_captcha/Example.php
<?
	if(isset($_POST['setCaptcha'])){
		include_once('./captcha/cf.captcha.php');
		if(!check_captcha($_POST['setCaptcha'])){
			echo 'CAPTCHA CHECK: <span style="color:red">'.$error_captcha.'</span>';
			//exit();
		}else{
			echo 'CAPTCHA CHECK: <span style="color:green">Correct</span>';
			//proceed
		}
	}
?>

<form  method="post" action="" class="center">
	<br/><img id="captcha_img" src="./captcha/cf.captcha.php?img=<?=time();?>" /><br/>
	<a href="#" onclick="document.getElementById('captcha_img').src = './captcha/cf.captcha.php?img=' + Math.random(); return false">Reload Captcha</a><br/>
	<label for="setCaptcha">Verification code: </label><br/>
	<input name="setCaptcha" type="text" id="setCaptcha" size="24" class="textbox" /><br/><br/>
	<input type="submit" value="Send" /><br/>
</form>
Return current item: CF Captcha