Re: Re: HTML QuickForm Stumper
| From: | Mark Wiesemann | Date: | Thu, 23 Mar 2006 21:06:29 +0000 |
| Subject: | Re: Re: HTML QuickForm Stumper | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23424@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
Ah, thanks for the hint. Actually setDefaults() was the method I wanted to use here ... Regards, MarkSomething like: if ($_SESSION['account']->PayType == 'debitcard') {setDefaults() is the right way.$form->setValue(array('PaymentType' => 'debitcard';} should do want you want. (Don't have time now to test whether this is really the right code, but setValue() should be the right way.)