Solved

Captcha on Mac

Posted on 2013-10-29
5
591 Views
Last Modified: 2013-10-30
We have a website that uses "captcha" such that when the user completes a form, there is a 5 letter / number code that must be retyped.

All is done in php.

On Mac computers using Safari, the browser automatically uppercases the first letter of the response; since this DOES NOT produce a match, it fails. The customer does not realize what is happening.

Is there a way to either prevent that from happening or to force Captcha to upper case the first letter?

Note I have NO CONTROL over how users will have configured their browser.

The captcha modules is attached.

Thanks
CaptchaSecurityImages.php
0
Comment
Question by:Richard Korts
  • 2
  • 2
5 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39610196
Yes, this is easy to fix.  I have an article on CAPTCHA here with several examples.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_9849-Making-CAPTCHA-Friendlier-with-PHP-Image-Manipulation.html

You probably don't want to be using a piece of free code from 2006, anyway!  That would be like driving a 2006 car -- it's warranty has expired!
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39610201
But if you decide you want to keep that old thing, change line 30 to this:

            return strtoupper($code);

And in whatever place you check the security code make a similar normalization with strtoupper().
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39610397
Most captchas like the reCaptcha from Google are made to be case insensitive.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39610477
Safari on my MacBook Pro with OS X 10.6.8 does not do that, it does not capitalize the first letter.  Which version of OSX and Safari is doing that?
0
 

Author Comment

by:Richard Korts
ID: 39611474
DaveBaldwin

It doesn't do it on the iPad either.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question