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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to