I would do this using Javascript in the form.
The advantage of this is the form data is validated without the client
having to return the form to the server, which then would have to validate
and return the the client the errors. With JS you can do it all client-side
and only allow the form to be submitted once it's passed validation.
John
-----Original Message-----
From: Smith, Jim R [mailto:[EMAIL PROTECTED]]
Sent: 13 July 2001 13:17
To: [EMAIL PROTECTED]
Subject: CGI.pm and form validation
I've created a CGI program that asks a user to fill in a number of fields.
I would like to validate that the required data is present and in correct
format.
A date, time, phone number, Ip Address etc.
Obviously I could code a number of regex's, but I was wondering if there was
a module or script
that I could use along with CGI.pm.
Any Suggestions ?
Regards,
JimBob
--------------------------Confidentiality--------------------------.
This E-mail is confidential. It should not be read, copied, disclosed or
used by any person other than the intended recipient. Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful. If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.