Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-11-2012, 05:31 PM   PM User | #1
Gibson
New Coder

 
Join Date: Jun 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Gibson is an unknown quantity at this point
Numerical Capatcha help please :)

Hi,

I need to install a basic numerical capatcha (nothing to bulky though) I have tried a few and i get the form to submit but it doesn't seem to check the capatcha to see if it is correct or not. Can any one help me please as I'm going crazy going around in circles.

The site is here (stripped out top of template for now to make it less confusing! and was also change to the .PHP extension when trying the capatcha's i tried):

http://scriptdemo.co.uk/dave/GTCA/contact-cbf.html

I would ideally like it just above the submit button please.

Hope you can help
Many thanks
Joe
Gibson is offline   Reply With Quote
Old 09-11-2012, 06:33 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
I personally hate captchas, because I can't read the numbers/letters.

Here's another method:
http://docs.jquery.com/Tutorials:Saf...thout_CAPTCHAs

To answer your current question though ...
You should post the script(s) you did of a captcha that fails.
The script you posted above has no captcha.


.
mlseim is offline   Reply With Quote
Old 09-11-2012, 07:14 PM   PM User | #3
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,228
Thanks: 11
Thanked 156 Times in 156 Posts
DrDOS is infamous around these parts
Quote:
Originally Posted by mlseim View Post
I personally hate captchas, because I can't read the numbers/letters.

Here's another method:
http://docs.jquery.com/Tutorials:Saf...thout_CAPTCHAs

To answer your current question though ...
You should post the script(s) you did of a captcha that fails.
The script you posted above has no captcha.
.
I'm really with you on this one. Writing a good captcha script
that humans would be able to live with would be a boon for
humanity. However it needs to make little image files, so for
php it would need to be written for both imagemagick and GD,
because not everyone has either. I tried using .svg files but
it's too easy to read the code. An alternative to those would be
using positioned divs as bitmaps, but it's complicated and
messy, and you would need to have arrays of the bitmap
images to call. It's a big job writing all the code in any case.

PS: I just thought of a way to do it with .svg files that would
work. Use polylines to draw the letters.

Last edited by DrDOS; 09-11-2012 at 07:17 PM..
DrDOS is offline   Reply With Quote
Old 09-11-2012, 07:46 PM   PM User | #4
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
I hate captchas as well as the letters are often difficult to read. I just ask "what day was yesterday?"
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 09-11-2012, 09:19 PM   PM User | #5
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Quote:
Originally Posted by AndrewGSW View Post
I hate captchas as well as the letters are often difficult to read. I just ask "what day was yesterday?"
Depends on what time it is and what time zone the server & the user are in.
Inigoesdr is offline   Reply With Quote
Old 09-11-2012, 09:22 PM   PM User | #6
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Quote:
Originally Posted by Inigoesdr View Post
Depends on what time it is and what time zone the server & the user are in.
He,he, but they can have another go if they're "a bit lost"
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 09-12-2012, 09:21 AM   PM User | #7
Gibson
New Coder

 
Join Date: Jun 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Gibson is an unknown quantity at this point
Hey Thanks alot for the replies.

Unfortunately the person I'm helping wants a capatcha installed (i Said the same thing that it drives you crazy!!!!!

What is the best way to go about attaching this as I try to use code tags and it says there is to many characters. Should I cut it in half or do something else?

Many thanks
Joe

Last edited by Gibson; 09-12-2012 at 09:25 AM..
Gibson is offline   Reply With Quote
Old 09-12-2012, 04:22 PM   PM User | #8
Gibson
New Coder

 
Join Date: Jun 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Gibson is an unknown quantity at this point
HI again,

I have uploaded the PHP form and form handler script in a html file so you can view the script as I couldn't upload it here:

FORM - http://scriptdemo.co.uk/formscript.html

PHPScript - http://scriptdemo.co.uk/phpscript.html


obviously when the forms are working they are in PHP files etc

Many thanks
Joe
Gibson is offline   Reply With Quote
Old 09-12-2012, 05:09 PM   PM User | #9
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
My preference with generic captcha's is to simply create an image which has randomized other images within it. Then I show another picture and ask them how many of that they see. So if I used fruit, and had an image randomly with 4 strawberries and 2 bannanas, I'd ask them how many banana's are in it.
Some captcha's are more designed for the target audience. I wrote one once that presented calculus equations and asked for the results. That was obviously more designed to keep us mathematically challenged people from registering :P
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:30 AM.


Advertisement
Log in to turn off these ads.