Re: HTML_QuickForm Data Persistance interfering with dynamic values

From: Date: Thu, 07 Oct 2004 10:20:10 +0000
Subject: Re: HTML_QuickForm Data Persistance interfering with dynamic values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14789@lists.php.net to get a copy of this message
Hi, Ben Ford wrote:
QFC data persistence is interfering with the hidden element's value. I am using a wizard style multi-page form provided by HTML_QuickForm_Controller. This hidden element is set to a new value on each form invocation and it stays the same throughout the form. But, the form is going to be run many times over and over. The hidden element will be different each time. AFAIK, QFC is treating the the hidden element's value (which is set during creation) as a default value, and this is value is overridden by the value used on the form's last invocation. ( In other words, last time the form was run, a different value was used. This value is preserved in session variables, as described and intended by the QFC and QF framework. )
I suggest you consult the QFC FAQ: there are two relevant questions in there --- "How do I pass additional data" and "How do I reset the form".

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