Re: Re: HTML QuickForm Stumper

From: 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:
Something like: if ($_SESSION['account']->PayType == 'debitcard') {
    $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.)
setDefaults() is the right way.
Ah, thanks for the hint. Actually setDefaults() was the method I wanted to use here ... Regards, Mark

« previous php.pear.general (#23424) next »