For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2005 > Re: [PEAR] QuickForm dependant validation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] QuickForm dependant validation
Adam Ashley

2005-12-08, 7:11 pm

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

Damien Cros

2005-12-12, 7:12 pm

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com