When you use a variable in the list element of the CFLOOP tag, it must be enclosed in #'s...
<cfset myd = "">
<cfloop list="#form.mydata#" index="i" delimiters=",">
<cfoutput>
<cfset myd = "#i#">
#myd#<br />
</cfoutput>
</cfloop>
Otherwise, it interprets it as a literal value.
Last edited by cmhampton; Jun 27th, 2008 at 7:53 pm.
Reputation Points: 23
Solved Threads: 10
Junior Poster in Training
Offline 79 posts
since Feb 2008