RE: [PEAR] Heterogeneous element types in AddGroup?

From: Date: Wed, 11 Jun 2003 14:53:30 +0000
Subject: RE: [PEAR] Heterogeneous element types in AddGroup?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5908@lists.php.net to get a copy of this message
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) ... Thanks, Andy --- Hi! ... You didn't say one thing: what were you *expecting* to get? The behaviour you described is intended, nothing suspicious. Andy Kalinowitsch wrote: > Hi, > > I'm trying to create a group in QuickForm containing a dynamic list of > heterogeneous elements (text, textarea, checkbox, radio, & select). > > My code is at the end of this posting -- the cust_fields array gets > constructed properly (3 elements indexed numerically), but when I pass it to > the AddGroup, it gets transformed into the following. Am I invoking > AddGroup incorrectly, or is it just not possible to construct a > heterogeneous group? -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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