Re: Heterogeneous element types in AddGroup?

From: Date: Thu, 12 Jun 2003 12:11:16 +0000
Subject: Re: Heterogeneous element types in AddGroup?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5914@lists.php.net to get a copy of this message
Hi! Andy Kalinowitsch wrote:
Sorry -- I would like the resulting custom_fields.fields array to contain *all* of the elements I passed in through the $cust_fields array param. Right now, custom_fields.fields seems to only contain the last element processed ("field2"). I would like to iterate over the custom_fields.fields array and access the .label and .html properties for each element individually (instead of only being able to display the grouped HTML) ...
Oh, I see, I didn't understand that only the data for one element was returned. Upon closer inspection: The array output certainly looks weird, it is not produced by either Array or ArraySmarty renderer. It doesn't even look like old toArray() result. What version of QuickForm are you using and what method produces such output?

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