Project captcha (CleanView - Demo - Download)

Description

The name of this project tells everything by itself ! It's a little captcha generator which creates human-readable check codes which will keep you away from spammers and flooders. It requires PHP 4/5 with GD library.

Styles Demo::
captcha.php?style=[0-3]
s1 s2
  s3 s4

Docs

Script usage:

  =Form page=
1. add image and input fileds to your form (as in demo)
2. make sure you used session_start(); at the beginning of the page.
  =Target page=
3. include and instantiate a new Captcha() object
4. use the method isValid() to check if the entered code is valid

D
O
C
S
  1. <?
  2. session_start();  //<-must start SESSION if not done before
  3.  
  4. include 'class.captcha.php';
  5.  
  6. if($_POST['sent']=='true'){
  7. $captcha= new Captcha();
  8.  
  9.   if($captcha->isValid()){    
  10.      echo '<font color=green>Correct code !</font>';    
  11.   } else {
  12.      echo '<font color=red>Invalid code :(</font>'; 
  13.   }
  14. }
  15. // == FORM 
  16. $thisFile=$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
  17. if(!strstr($_SERVER['QUERY_STRING'], 'PHPSESSID'))  $thisFile.='&PHPSESSID='.session_id();
  18.  
  19. echo '<form action="'.$thisFile.'#demo" method="post">
  20.         <a href="captcha_test.php" title="Reload"><img src="captcha.php?style=0&PHPSESSID='.session_id().'" alt="capcha image" border="0" /></a>
  21.         <br>Code:<input type="text" name="cap_code" size="5"> 
  22.         <input type="hidden" name="sent" value="true">
  23.         <input type="submit" name="sub" value="Check">
  24.       </form>';
  25.  
  26.  
  27. ?>
  28.  



Demo

  » Launch Captcha Demo !

Purchase

If you like this script, you can have it now! Make the payment and we will automatically send you a download link at your email address. The price also includes technical support and free upgrade to all the following version of the script.

20 Your email:


(Payment reciver: andyy.mailbox  gmail.com )


« Back







 
 Back