Re: Quickform::updateAttributes() quirk

From: Date: Wed, 09 Apr 2003 13:08:17 +0000
Subject: Re: Quickform::updateAttributes() quirk
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4730@lists.php.net to get a copy of this message
Yes, I am using the latest HTML_Common, the problem persists. cheers, Demian Bertrand Mansion wrote:
<demian@muse23.com> wrote :
Hi, I'm having trouble getting attribute values to persist in the $_POST array during successive failures of a rule (eg, re-posting the form). The problem must be that I have all the elements in an array, eg: user[firstname] user[lastname] ... The above works fine but when <select> or radio values are introduced, by default as a sub-array, they are lost in $_POST. I believe this part of Quickform's functionality is handled by HTML_Common::_parseAttributes() and HTML_Common::_updateAttrArray() Anyone have any ideas if there's any way to overcome this? cheers,
Make sure you use the last released version of HTML_Common. Once upon a time, HTML_Common was installed with the PHP distro so you might be using an old version. Bertrand Mansion Mamasam


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