Re: HTML_QuickForm not getting values from $_POST

From: Date: Wed, 15 Jun 2005 16:26:42 +0000
Subject: Re: HTML_QuickForm not getting values from $_POST
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19637@lists.php.net to get a copy of this message
On 6/15/05, Miguel Telleria de Esteban <miguel@beeznest.org> wrote: > Hello there, > > SHORT DESCRIPTION > > After successfully processing an HTML_QuickForm and obtaining the > submitted values via ->exportValue("valueName"), I create a SECOND > HTML_QuickForm object sharing some element names as the previous one > and hoping that it will get them as well. > > The problem > ----------- > Even if the element names correspond exactly with the $_POST > variables the posted variables are NOT imported. > > Could anyone tell me if I can import those $_POST variables > automatically? > > HTML_QuickForm doesn't import those variable values unless it thinks that the form has been submitted. I suggest you try using setDefaults with, perhaps the array from $form->exportValues() from the first form. -- Justin Patrin

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