Re: Re: HTML_QuickForm getting all elements of a form

From: Date: Fri, 03 Dec 2004 09:57:35 +0000
Subject: Re: Re: HTML_QuickForm getting all elements of a form
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15987@lists.php.net to get a copy of this message
Sönke Ruempler wrote:
Sorry, but I need a method for getting the element names / objects, not the submitted values ...
It's just an ugly hack, but you could use exportValues() to get your value /names/ and then use getElement() to actually get your objects: $elements = array_keys($form->exportValues()); foreach ($elements as $elements) {
    $objects[] =& $form->getElement($element);
} cheers martin -- /* no comment */ Please use my public PGP key: http://www.mbant.de/mbant-gpg-key

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