Skip to main content
Inspiring
April 3, 2007
Question

form validation - disallow entries

  • April 3, 2007
  • 3 replies
  • 283 views
I have got javascripts galore for form validations. Alphanumeric entries, numeric only entries, email entries, etc. However, I have a client who wants to prevent users from being able to enter "garbage" data into the form fields prior to form submission (there is an area of the site that is protected until the visitor enters their name and company). For example, anything from 'aaa' to 'slkdfjlsdkfj' he wants to get rejected - anything that he believes is not valid, which is asking for trouble as far as I'm concerned. How do you anticipate whether a foreign name is valid or not? I'm already anticipating what the answer will be... that I need to set up each individual rejected word or phrase one by one. Does anyone out there know of a way to somewhat automate this process so each possible "garbage" entry wouldn't have to be listed one by one? I think I'm asking the impossible, but I'm putting it out there anyway
This topic has been closed for replies.

3 replies

Inspiring
April 3, 2007
Add a captcha.
Inspiring
April 3, 2007
And my condolences to Mr. A. Fluffybunny.

That is QUITE a name.
ssailerAuthor
Inspiring
April 3, 2007
:) Yes, I think I have my answer :)
Inspiring
April 3, 2007
i think you know the answer already...
the only way to prevent "garbage" from being entered into form, is to
require info that can be verified, i.e. email address.
i have a friend who's doing online bookings for local hotel association,
and he got a booking one day from Mr. A. Fluffybunny. "Garbage"? No,
that was actually his real name.
--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com