you really ought to doublecheck the length on the server too if that's in a form that gets submitted. a user may have javascript turned off, or, if your systems would break on too much input, a (cr|h)acker might manually send you longer input as a DOS.
point is, you should never rely on client-side code to validate forms.
anders pearson // digital samurai personal // http://www.columbia.edu/~anders/ weblog // http://thraxil.dhs.org/
In reply to Re: Re: Regex help
by thraxil
in thread Regex help
by wstarrs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |