Sara wrote:
If the 'name' is coming from a Form, try limiting it within the form
tags, it's always a better idea.

<input type=text name=name MAXLENGTH=40>

Better!? Nope. It may be a convenient *supplement*, so that people don't need to unnecessarily type a string that the script immediately rejects, but please note that people can submit to the script using e.g. their own form, so if you want to *make sure* that longer strings are not accepted, the maxlength attribute is not sufficient, and can *never* replace a proper validation of the form data.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to