Re: override quickForm elements value

From: Date: Sun, 20 Jun 2004 07:02:36 +0000
Subject: Re: override quickForm elements value
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13221@lists.php.net to get a copy of this message
Hi, j llarens wrote:
I'm coded a form that under certain circumstances need to fix the values that comes from $_REQUEST, for example say: $_REQUEST["id_customer"] (that contains "345") First, I use the setDefaults method to change the value of the element, but quickForm simply don't take it in account, say: $defaults("id_customer" => "0"); $exampleFrm->setDefaults($defaults); This does not worked.
Use setConstants().

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