Need Captcha to a form --> Help

Discussion in 'Programming' started by rwin2007, Jan 12, 2008.

  1. #1
    Hi, how can help me integrate or add a captcha protection to a simple form with one button.

    Doesn't mind what kind of form protection.

    Please PM me price and turnaround.

    Thanks
     
    rwin2007, Jan 12, 2008 IP
  2. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Sending PM.

    Thanks
     
    NetworkTown.Net, Jan 12, 2008 IP
  3. php_coder

    php_coder Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    man its not worth paying money for this kind of service

    look find any empty png image

    store it in the same folder of the form

    then create aphp file called for example captcha.php with this code in it

    
    <?
    session_start(); 
    $md5 = md5(microtime() * mktime()); 
    $string = substr($md5,0,5);
    $captcha = imagecreatefrompng("captcha.png"); 
    $black = imagecolorallocate($captcha, 0, 0, 0); 
    $line = imagecolorallocate($captcha,233,239,239);  
    imageline($captcha,0,0,39,29,$line); 
    imageline($captcha,40,0,64,29,$line);
    imagestring($captcha, 5, 20, 10, $string, $black); 
    $_SESSION['key'] = md5($string); 
    header("Content-type: image/png"); 
    imagepng($captcha);
    ?>
    
    
    PHP:
    now put this html code with your html page of the form

    
    <img border="0" src="captcha.php" width="60" height="60"></p>
    
    PHP:
    now when the form submits just put this php code in the php post file

    
    if(md5($_POST['your fieldname']) != $_SESSION['key']) {
    echo 'body you entered wrong code!';
    }
    
    PHP:
     
    php_coder, Jan 12, 2008 IP
    vertigoflow likes this.
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #4
    I can do this for $50
    50% advance

    Regards

    Alex
     
    kmap, Jan 12, 2008 IP
  5. big.gamma

    big.gamma Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    $10 bucks. shoot me a pm
     
    big.gamma, Jan 13, 2008 IP
  6. superstan

    superstan Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    i can do for 2 dollars with image verification
    :p
     
    superstan, Jan 13, 2008 IP