In my form I named the check boxes "chk_img_" & #i#.
So I get how to use it in IsDefined, but how do I get it to display the value of that FORM.check_img_ 1 without hard coding the number 1? Sometimes it might be like up to 1,000 and I'm not going to hard code a 1000000000 options. This is probabyl a very easy fix, but i've been up all night working on this code and now I'm dead in the water, with no brain power. Thanks in advance for the help.
So I get how to use it in IsDefined, but how do I get it to display the value of that FORM.check_img_ 1 without hard coding the number 1? Sometimes it might be like up to 1,000 and I'm not going to hard code a 1000000000 options. This is probabyl a very easy fix, but i've been up all night working on this code and now I'm dead in the water, with no brain power. Thanks in advance for the help.
Code:
<cfloop from="1" to="#intCheckBoxesCount#" index="i">
<cfif IsDefined("FORM.chk_img_" & #i#)>
<cfoutput> chk_img_#i# value = #FORM.check_img_#<!--- this is where i am having trouble --->
</cfoutput>
</cfif>
</cfloop>
Comment