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




-----Original Message-----
From: Wicked Run [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 4:48 PM
To: CF-Newbie
Subject: Checkbox Help

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. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2995
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to