I've got a query that returns a variable number of records,
with a check box and textbox on the form as follows...
<input type="checkbox" name="checkOpt" value=#PER_ID#>
<input type="text" name="txtDTEST#BLG_ID#" width="15%">
On the action form I want to loop through the values on the
form. I can pick up the values of the checkbox, but I'm having
trouble with any value I enter in the textbox. It's oaky if I
select all the check boxes, but it I miss one out the value in the
text box is n ot returned. I tried appending the value in the query
onto the textbox name, but I keep getting errors
<cfif isdefined("form.checkOpt")>
<CFLOOP INDEX=i FROM=1 TO=#ListLen(checkOpt)#>
<CFSET ChkID=#ListGetAt(checkOpt,i)#>
<CFSET x=#ListGetAt(txtDTEST#BLG_ID#,i)#>
<cfoutput>#i#...App...
#ChkID#...bldg...#x#<br></cfoutput>
</CFLOOP>
</cfif>
Thanks in Advance
Roy.