You would just use the list fuction. If you are wanting to insert these into a database you could just loop over with a cfloop
<cfloop list = "#form.answer#" index="idx"> <cfquery> insert into table ( column1 ) VALUES ( #idx# ) </cfquery> </cfloop> et.al J.J. On 8/30/07, Gary Strommen <[EMAIL PROTECTED]> wrote: > I have a form where the user can select multiple checkboxes and the > selections are stored in one comma separated list. How do I separate those > values on the next page? > > Page 1: > <input type="checkbox" name="Answer" value="A">Option A<br> > <input type="checkbox" name="Answer" value="B">Option B<br> > <input type="checkbox" name="Answer" value="C">Option C<br> > <input type="checkbox" name="Answer" value="D">None of the above > > Page 2: (Option A and Option B were selected) > > FORM.Answer = A,B > > I want to insert these answers into a database table. Any ideas on where to > go from here? > > Thanks in advance! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3016 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
