Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-03-2006, 11:27 AM
Registered User
 
Join Date: Aug 2006
Posts: 1
Form fields

How can I stop someone from entering jibberish into a required field on a form?

Example: Name: aaaaaa
Email: a@2.com
Reply With Quote

  #2 (permalink)  
Old 08-03-2006, 11:41 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
I'd say you can test with regular expressions if the string contains a minimum of characters, and the characters come in an order that is less likely to be junk.

For example, there is no one letter domain. Two letters are the minimum. And for names, I like to check for a "space" (you know first name and last name). And both parts of a name should have two character minimum.

There are really countless things to do. However - deleting the submission could be the fastest.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending a form, not just the results by email kenwvs Programming and Scripting 1 06-29-2006 04:46 PM
Setting Values For Form Elements With Unconventional Names curtiss Programming and Scripting 2 06-04-2006 08:28 PM
Obtaining a Form Elements Index by Name curtiss Programming and Scripting 3 05-02-2006 10:25 AM
passing information from 1 form to another amanxman Programming and Scripting 3 04-12-2006 03:59 PM
Store Form Focus As Variable? curtiss Programming and Scripting 1 09-30-2005 09:41 AM


All times are GMT -5. The time now is 02:38 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter