Re: ::HTML_QuickForm_Controller->exportValues()

From: Date: Wed, 01 Oct 2003 06:52:48 +0000
Subject: Re: ::HTML_QuickForm_Controller->exportValues()
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22247@lists.php.net to get a copy of this message
*Problem* If you use the HTML_QuickForm_Controller package to build a multipage-form and want two elements with the same name on two different pages, then the exportValues() method in class HTML_QuickForm_Controller will only be able to return an array with one of the values. This is because the array returned is composed like:
    array('element_name' => 'element_value')
exportValues() was designed to work this way to make the multi-page Controller look like a single-page QuickForm. Thus no desire to "fix" this behaviour. :]
I agree with alexey here. It is much simpler to process this way. Plus, i don't see why two elements would have the same name, making a difference between the two just because they live on a different page might not be a good idea. Arnaud.

« previous php.pear.dev (#22247) next »