RE: [PEAR] Quickform and an array of elements in html
| From: | Thomas Schulz | Date: | Wed, 04 Jun 2003 11:12:05 +0000 |
| Subject: | RE: [PEAR] Quickform and an array of elements in html | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5778@lists.php.net to get a copy of this message | ||
Mike Carter wrote in php.pear.general:
>>> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
>> This won't help... We decided that submit buttons *should*
>> get their value from
>> submitted values, remember? Maybe we should reconsider?
>
> Yeah it did not help using the latest 3.0RC1 beta. :-(
> Is there reasoning behind the need to get a submit buttons value from
> the submitted values? Where would this be used in a web application?
The reason is BC... ;-)
This problem also occurs when I use the button label (internally handled
as value) as key for I18N inside the renderer/template. On a second form
request the button value is allready changed from I18N-Key to translation
and the template function trys to translate the translation...
You can use setconstants() to prevent the values from change, but I think
this should done by default.
Bertrand, Alexey: please reconsider! :-)
Thomas.
--
http://4bconsult.de