Captcha on Mac

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.

Richard KortsAsked:
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
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().
Ray PaseurCommented:
Yes, this is easy to fix.  I have an article on CAPTCHA here with several examples.

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!
Dave BaldwinFixer of ProblemsCommented:
Most captchas like the reCaptcha from Google are made to be case insensitive.
Dave BaldwinFixer of ProblemsCommented:
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?
Richard KortsAuthor Commented:

It doesn't do it on the iPad either.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.