Location: PHPKode > scripts > DEA Captcha > example1.php
<?
session_start();
?>
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title></title>
</head>
<?
//echo $_SESSION[key].' - '.$_POST[user_code].'<br>';
if ($_POST[submit]){
	if ($_SESSION[key]==$_POST[user_code]){
  	   $_SESSION[key]='';
      die('success');
   }
}
?>
<body onload="document.getElementById('user_code').focus();">
<form id="form" name="form" method="post" action="" >
<table border="0">
   <tr valign="middle">
      <td>
         <img src="captcha.class.php?usefile=1" />
         <!--OR-->
         <!--<img src="image.php" />-->
      </td>
      <td>
         <input id='user_code' name='user_code' type='text' size='10' >
      </td>
   </tr>
   <tr align="center">
      <td>
         <input type='submit' value='reset' name='reset'>
      </td>
      <td>
         <input type='submit' value='submit' name='submit'>
      </td>
   </tr>
</table>
</form>
</body>
</html>


Return current item: DEA Captcha