Quickform addGroup() -> removeGroup() ? like addElement() and removeElement()?

From: Date: Thu, 15 Jan 2004 23:58:22 +0000
Subject: Quickform addGroup() -> removeGroup() ? like addElement() and removeElement()?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10171@lists.php.net to get a copy of this message
Hello List, while playing with Quickform i encountered the first problem i wasn't (weren't? i'll never learn) able to solve with the manual or the tutorial. I use this code (from the great Tutorial at http://www.linuxbackup.co.uk/quickform) to make Reset and Submit appear on one line. $buttons[] = &HTML_QuickForm::createElement('submit', 'btnSubmit', 'Submit'); $buttons[] = &HTML_QuickForm::createElement('reset', 'btnClear', 'Reset'); $form->addGroup($buttons, 'actions', null, '&nbsp;'); I'd like to show the form again when it is validated but without the buttons. Is it possible to remove groups from the form? Removing an element works. if ($form->validate()) { // Form is validated, then processes the data $form->process('process_data', false); //$form->removeElement('name'); // <- works //$form->removeGroup('actions'); // <- doesn't work $form->freeze(); $form->display(); echo "Fine"; } else { $form->setDefaults($user); $form->display(); } Any idea's how to solve this? Even though it's just a cosmetic issue i wonder if there is a solution. If you got any more links to Quickform Tutorials i'd love to check them out. I googled a little but mostly found dead links or other sites linking to the above mentioned. Kind regards Phil

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