Hi,
By saying 'I want to pass these options along with the productID and qty',
are you saying that when you submit the form, the values are not being
passed to the action page?

Otherwise Ian's answer about the array notation for form data seems right.
In simple terms, the radio button for option1 will be named
form.option1(when the action page sees it) and it's value will be
#form.option1#.

If you know the total number of options, you can loop through that number
like so (not tested):

<cfloop from=0 to=thatNumber index="thisNumber">
   <cfif StructKeyExists(form,'option#thisNumber#')>
      <cfset whateverVariable = #form["option" & thisNumber]#>
   </cfif>
</cfloop>

George

On 2/3/06, j s <[EMAIL PROTECTED]> wrote:
>
> It is for a form which will display a product.  That product has options
> you can add to.  Like Coffee, you can have the option of whole
> milk/skim/cream, sugar/equal/brown, caffine/decafe and so on.
>
> I want to pass these options along with the productID and qty.
>
> The possible values that are passed are:
>
> FORM.ProductID,
> FORM.Qty
> FORM.Option1 (option#count#)
> FORM.Option2
> FORM.Option3
> And so on...
>
> The Options are created dynamic so I don't know how many option groups (ie
> milk, sweeatner) I will have for each option (whole, skim, equal,
> splenda).  This is why I have the input name= option#counter#.  Since I'm
> working with radio input each group of options must have a unique name so I
> can select either whole milk, skim....
> whole milk skim milk all have input nmes option1
> white sugar, equal all have input names option2
>
>
> The sku and qty are stored in a cartTable with a unique key for each line.
> Options will be insert in a seperate table which will only store the
> optionID and the cartID.
>
> Anyway, I don't know how to pass the many options along with the productID
> and qty.
>
>
> Can you point me to how to do this?
>
> > I have no idea what you are really trying to do.  It sounds very
> > convoluted.
> >
> > But hopefully the answer to your question is the array notation for
> > form data.  It usually is for these kinds of serially numbered fields.
> >
> >
> > #form["fieldname" & counter]#
> >
> > HTH
> >
> > --------------
> > Ian Skinner
> > Web Programmer
> > BloodSource
> > www.BloodSource.org
> > Sacramento, CA
> >
> > ---------
> > | 1 |   |
> > ---------  Binary Soduko
> > |   |   |
> > ---------
>
> >
> > "C code. C code run. Run code run. Please!"
> > - Cynthia Dunning
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231352
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to