• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

form validation - disallow entries

Participant ,
Apr 02, 2007 Apr 02, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

249

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 02, 2007 Apr 02, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 02, 2007 Apr 02, 2007

Copy link to clipboard

Copied

🙂 Yes, I think I have my answer 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 03, 2007 Apr 03, 2007

Copy link to clipboard

Copied

Add a captcha.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 03, 2007 Apr 03, 2007

Copy link to clipboard

Copied

LATEST
And my condolences to Mr. A. Fluffybunny.

That is QUITE a name.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation