|We don't bite newbies here... much|
Form validation using ValidateRMby bar10der (Beadle)
|on May 11, 2004 at 14:07 UTC||Need Help??|
bar10der has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to use CGI:Application's validateRM function to validate my forms. I am able to write a rule for all the form fields for which input is required and here is the code
I am facing problem in two cases -
1. There is a field (eg bonus) which must be entered if user has selected 'Yes' option from a selection option ('Eligible').
2. How can I make sure that user enters only digits in certain field eg. bonusAmt ?
How can I do the above two?
Please help as I am writing my first validateRM script.