qucikform

From: Date: Thu, 19 May 2005 11:29:01 +0000
Subject: qucikform
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19278@lists.php.net to get a copy of this message
hey guys... i have a follow up to this question... http://marc.theaimsgroup.com/?l=pear-general&m=108771498326180&w=2 > 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(). . . . . Thats fine... but on top of that also need a clear button... that will totally clear the form fields so the form can load up with values from setConstants but then should be clearable using the clear button element how can i accomplish this...

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