Yes, I get it.  And, it is most interesting.  I know it sounds corny, but
hanks for expanding my knowledge.
Lewis

On Thu, Sep 2, 2010 at 8:52 PM, Maureen <[email protected]> wrote:

>
> No, by dynamic form fields I mean form fields that are created and
> named programatically because you don't know in advance how many there
> will be.  An  example of this might be a shopping cart where you build
> each detail line as items are added to the cart, then parse each line
> of the form when it is submitted.
>
> Since you have multiple items when you submit each form field will
> contain a comma delimited list like this if you use the same name for
> the form field for each item:
>
> itemid:  31,53,68,81
> price:  1.85,7.95, 112.79, 138.50
> color:  blue,,red
>
> Or like this if you use an incremental naming scheme.
> itemid_1: 31
> price_1: 1.85
> color_1: blue
>
> I just find it easier to map the form to an array or structure and
> loop over that to get the elements I need for each item.
>
> On Thu, Sep 2, 2010 at 4:08 PM, Lewis Billingsley
> <[email protected]> wrote:
> >
> > Maureen,
> >
> >  Thanks, this is good information.  Please, forgive my fitting the Newbie
> > definition so clearly, but I have a question about what you mean by
> dynamic
> > form fields.  It seems like you mean regular text fields with comma
> > delimited lists, as opposed to select boxes, yes?   Using listToArra
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5094
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to