Look at the Evaluate function -- e.g
<cfset strSQL = strSQL & "ID = " & Evaluate("PrintID#pos#") & " or ">


----- Original Message -----
From: "Michael Wolter" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 4:04 PM
Subject: getting values out of numbered form fields


> I have a set of forms that allow the user to search a database, display
> matching records and then lets the user select specific records to print.
> The search displays matches in a form with check boxes for each record.
> So I need to loop through these numbered form fields, but I don't know how
> many there might be.
>
> The code I have is:
>
> <cfloop condition="isdefined(chkPrint#pos#)">
> <cfset strSQL = strSQL & "ID = " & PrintID#pos# & " or ">
> <cfset pos = pos + 1>
> </cfloop>
>
> The part where I am checking for the existence of the field seems to work,
> but I can't figure out how to pull in the values from these fields and add
> them to my string.
>
> Thanks in advance for any insights.
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> |  Michael Wolter                             [EMAIL PROTECTED]   |
> |  Administrative Programmer/Analyst          Carlisle, PA 17013     |
> |  Dickinson College, Computer Services       (717) 245-1527         |
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to