Basically you need to re-doc (or undo) what you have just done :)
You are basically going to pass the total number of checkboxes.
Then loop on that value and evaluate it.
<cfloop index="count" from="1" to="#form.count#">
<cfset variables.value = "#Evaluate("form.C#count#")#">
<!--- Do your database stuff here using "form.C#count#" --->
</cfloop>
There are proabably various other ways that will get to the same result
Paul Giesenhagen
QuillDesign
http://www.quilldesign.com
SiteDirector - Commerce Builder
----- Original Message -----
From: "Brunt, Michael" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:55 PM
Subject: Checkbox with mutliple names passed to query needing 1 name
> I have the following issue. I had to create a form which is populated
from
> a query which can return multiple rows, one of the form elements is a
> Checkbox which is used to select a row or rows from the form to run a
> succeeding select query. Our users needed to capability to select or
> deselect all check boxes at once and with help from CF-Talk we solved this
> issue using JavaScript and cfloop. The snag is that in a multiple line
form
> each checkbox now has a unique value as a result of this code: -
>
> <td><input type="Checkbox" name="C#loopCount#" value="#SVC_ADDR_ID#"></td>
>
> The C#loopCount# means that each checkbox has a different name when it
> passed to the next query and the query obviously needs a fixed checkbox
name
> to interpret the form.checkbox var passed to it. It's Catch22!
>
> Anyone got any ideas on this? and I hope I described this clearly.
>
> Mike Brunt
> Sempra Energy
> 213.244.5226
>
> "A complex system that does not work is invariably found to have evolved
> from a simpler system that worked just fine. "
>
>
>
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists