PDA

View Full Version : Validation working too well....


Daryl
03-06-2009, 12:52 PM
I have created a contact form that can be seen here - http://k9-sar.com/contactus.php

A number of people have said that the message field still says that a message needs to be added even when it has been done.

All of these people state that they are using the latest browsers.

I have tried to recreate the problem but can not.

Any ideas?

Ray Borduin
03-06-2009, 12:58 PM
I can't reproduce the problem either. Find the specific browser version and OS that users are reporting the problem on.

There is really no way to fix a problem that you can't reproduce, if for no other reason than you could never verify that it was fixed. So concentrate on reproducing the problem and once you can the solution is usually pretty easy.

Ray Borduin
03-06-2009, 01:04 PM
Actually I was able to reproduce the problem. You have "Alphanumeric" validation on that field, so if you hit return, the carriage return character is causing the validation to fail.

You should either use required validation or add \\n and \\r to the list of allowed characters to prevent this problem.

Daryl
03-06-2009, 11:18 PM
Thanks Ray, yet again, fantastic support!!