Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-08-2008, 06:33 PM Captcha
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Could someone please point me to a working comments php with captcha bundled script?

I have tried 6 or 7 different captchas and none of them work.
__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
 
Register now for full access!
Old 08-08-2008, 07:46 PM Re: Captcha
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Comments? General comments? Is this for a particular software, and, if so, which?

As for CAPTCHA, ReCAPTCHA is a good one to look at.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-08-2008, 08:22 PM Re: Captcha
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
I just made a 'cheap captcha' script that asks for the sum of two random numbers...you could use it if you like.

Put this in your form:

PHP Code:
    <?php
        $randomNumber1 
rand(110);
        
$randomNumber2 rand(110);
        
$sum $randomNumber1 $randomNumber2;
        
$_SESSION['sum'] = $sum;    
    
?>
        <p class="label">We just need to check to make sure you're not a Dalek. Please add the numbers below and enter in the result.</p>
        <label for="captcha" class="label"><?php echo $randomNumber1.' + '.$randomNumber2.' = '?></label>
            <input type="text" class="input" id="captcha" name="captcha" />
And this in your validation:

PHP Code:
        if (empty($_POST['captcha'])){    
                
$errors[] = "You must enter a number to answer the math question below.";    
        } else if (
$_POST['captcha'] != $_SESSION['sum']){
            
$errors[] = "The number you entered wasn't the right answer for the math question.";    
        } 
I use $errors as an array that will prevent the script from executing if it has a value.
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 08-08-2008, 08:34 PM Re: Captcha
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Just an idea, VM, but integrating http://pear.php.net/package/Numbers_Words might be fun with numbers large than 10.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-09-2008, 12:20 PM Re: Captcha
SpiderWeb's Avatar
Junior Talker

Posts: 4
Trades: 0
I use one called securimage from http://www.phpcaptcha.org/. Works great!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
SpiderWeb is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Captcha
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31533 seconds with 12 queries