> Hi,
> 
>   I have created some HTML forms using the Perl CGI module. Now I need
to perform client-side
> validations on those forms. Examples of these validations include
checking if numbers alone have
> been entered in a price field, checking if the e-mail field is in the
correct format etc.
> 
>   I am thinking of using Javascript for these validations. Could
anyone tell me if this is the
> best thing to use or is there some Perl-specific thing available that
would be easier. 
> 
>   Thanks in advance for any suggestions.
> 

Since you are talking about client side validation, Javascript is
probably your best bet.  Keep in mind that you should do validation on
the server side as well, client side validation *alone* (at least for
myself) isn't sufficient for a production app, and reduces the
genericity of your code by coupling the interface and model.

http://danconia.org

-- 
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