I would do this using javascript within the form. Then when the field loses
focus you can validate it. This means the form doesn't have to be submitted
before the user is alerted of a problem.

For extra robustness you can also validate the submitted results in the perl
script and return the user to the form with highlights on what is
wrong/missing.

HTH

John

-----Original Message-----
From: Bhanu Prakash [mailto:[EMAIL PROTECTED]]
Sent: 21 February 2002 10:59
To: [EMAIL PROTECTED]
Subject: [Q] Validating Forms?!


HI All,
          Is there a way to Validate the fields of a
form? Say I have a
text field, and I should show an error to the user if
he does not enter
anything while submitting the form?
Thanks for the help
Bhanu.



=====
Bhanu Prakash G V S

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to