Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Field Size Limits

Status
Not open for further replies.

OrWolf

MIS
Mar 19, 2001
291
How can I verify that data entered in a field is not more than the database is set-up for, without making the field required? I want to limit a certain field to 50 characters, but I don't want it to be a required field. I don't see how this is an option using form field validation.
 
there are several techniques... the easiest of which is (IE only):

<input type=&quot;text&quot; name=&quot;somefield&quot; maxlength=&quot;50&quot; />
jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top