Re: Re: HTML_QuickForm getting all elements of a form
| From: | Jim Tom Polk | Date: | Fri, 03 Dec 2004 15:58:34 +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-15992@lists.php.net to get a copy of this message | ||
Ah, so you need something that will tell you want is currently on the form??
fname => text,
description => textarea,
sex => select
I know you can get a list of all element types using getRegisteredTypes();
Question: at what point do you want a list of the element names/objects present on a form? When the page loads, correct?
Sönke Ruempler wrote:
Jim Tom Polk wrote on Friday, December 03, 2004 9:30 AM:-- Jim Tom Polk | NEW! Total Computing...by Camalott 2913 South First Street | http://biz.camalott.com Abilene, TX 79605 | Computers - Networks - Firewalls http://www.camalott.com | Installation - Troubleshooting - Repair Office: 325-676-9818 | Preventive Maintenance - Consulting ------------------------------------------------------------------- Celebrating 10 years of Fast Internet and Awesome Support ------------------------------------------------------------------- Support: 325-738-7972 8 AM to 10 PMTook me a while to find it. if ($form->validate) { $fieldsValues = $form->exportValues(); $form->freeze(); } echo "<pre>"; print_r($fieldsValues); echo "</pre>";Sorry, but I need a method for getting the element names / objects, not the submitted values ...