Skip to main content
New Participant
February 6, 2009
Question

CFLpop

  • February 6, 2009
  • 2 replies
  • 234 views
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.
    This topic has been closed for replies.

    2 replies

    CombineAuthor
    New Participant
    February 6, 2009
    BLG_ID is a value from a query
    Inspiring
    February 6, 2009
    what is #BLG_ID, where does it come from and how does it relate to its
    checkbox and to your loop index?

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/