Great. I had been looking at it and just couldn't figure it out. Thanks for the help.
>On your submission page, why not just loop the Modules List and format them >as you need? > ><cfset newList = "" /> > ><cfloop list="#form.modules#" index="idx"> > <cfset newList = listAppend(newList,idx & "-1") /> ></cfloop> > >Then place the newList in your hidden field? > >Hope that helps, >Curt > > >---------------- >Curtis C. Layton >Senior Web Applications Developer - AboutWeb, LLC - http://www.aboutweb.com >Blog: http://www.curtislayton.com >Adobe Certified Advanced ColdFusion MX Developer > > > > >Hi Everyone- > >I am stumped on something and was hoping to get some assistance. I have a >form that contains checkboxes that people will use to select up to 4 items. >The value on the checkbox is the ProductID. After they select these items, I >need to pass the ProductIDs in another form. The ProductIDs are what will >pass to a shopping cart so it knows what products to add to the cart. > >So basically people will have this below: > ><table border="2" cellpadding="5" cellspacing="0" align="center"> ><tr> ><td> ><input type="checkbox" name="Modules" value="2356">1 ><input type="checkbox" name="Modules" value="2357">2 ><input type="checkbox" name="Modules" value="2358">3 ><input type="checkbox" name="Modules" value="2359">4 ></td> ></tr> ></table> > >Then they choose however many items which then will get passed into the >following: > ><input type="Hidden" name="ProductID" value="#Modules#-1"> > >I can't get the checkbox list into the value like "2356-1;2358-1;" > >Any advice on this would be great. > >Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2996 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
