Expand|Select|Wrap|Line Numbers
- <cfset temp=ArrayNew(1)>
- <cfset i=1>
- <cfloop query="myQuery">
- <cfset temp[#i#]=#myQuery.colName#>
- <cfinput type="checkbox" name="temp[#i#]" value="#temp[i]#"/>
- <cfset i=i+1>
- </cfloop>
temp[1] {correct value}
temp[2] {correct value}
temp[3] {correct value}
submit 'submit'
etc.
Additionally, when I attempt to reference the variables for further manipulaton, using for example the 'IsDefined' function, the variables cannot be accessed. For example the following does not work:
Expand|Select|Wrap|Line Numbers
- <cfif IsDefined("form.temp[1]")>
Regards
Blackmore