Re: QuickForm dependant validation
| From: | Adam Ashley | Date: | Thu, 08 Dec 2005 23:29:18 +0000 |
| Subject: | Re: QuickForm dependant validation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22184@lists.php.net to get a copy of this message | ||
On Thu, 2005-12-08 at 11:10 -0800, Mark Steudel wrote:
> I was hoping I could get a little help on doing validation that is dependant
> upon another element.
>
> Like a credit card form with a checkbox that says "address same as billing".
> If it is checked then I want it to enable all the rules lower down.
>
Take a look at the formrule.php example that comes with HTML_QuickForm
it covers doing exactly what you want.
Adam Ashley
Senior Developer
Ilisys Web Hosting
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc