Solved

Captcha on Mac

Posted on 2013-10-29
5
613 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 110

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 110

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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