[QuickForm] rename fields inside group

From: Date: Wed, 09 Apr 2003 16:56:46 +0000
Subject: [QuickForm] rename fields inside group
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4733@lists.php.net to get a copy of this message
Hi, I have set up a group to have a text field and a button (trying to use a popup calendar, actually). The popupcalendar script I am using requires the name of the field to be passed in. But the field name is of the form 'groupname[fieldname]' - I need it to be of the form 'fieldname' only! The source for QuickForm has this bit in the comment for addGroup:
     * @param string $useName (optional)specify whether the group name should be
     *	used in the form element name ex: group[element]
Anyone know if this works, and can provide an example? Thanks, Geoff -- Geoff Hopson Objectology Ltd. http://www.objectology.co.uk/

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