<?php session_start(); ?> 
<?php include('class.captchazo.inc'); ?> 
<?php 
if(!empty($_POST['captchazo']) && $_SESSION['captchazo'] == $_POST['captchazo']) echo('Captcha verified'); 
elseif(isset($_POST['captchazo'])) echo('Captcha failed'); 
unset($_SESSION['captchazo']); 
?> 
<br/><br/> 
<img src="sample_img.php" alt="captcha" /> 
<br/><br/> 
<form method="post"><label for="captchazo">Write image text and submit</label> 
<br/><input id="captchazo" type="text" name="captchazo" value="" /> 
<br/><input type="submit" value="Submit" /></form> 
 
 |