Re: Quickform::updateAttributes() quirk

From: Date: Wed, 09 Apr 2003 12:26:30 +0000
Subject: Re: Quickform::updateAttributes() quirk
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4725@lists.php.net to get a copy of this message
<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 (#4725) next »