I'm having an issue when I try to nest pound signs in my ColdFusion code. I keep getting the following error message:
Invalid CFML construct found on line 57 at column 26. ColdFusion was looking at the following text:
#
Here is the code:
<cfloop index="i" from="1" to="12">
<cfset needRecord.setNeed#i#(#form["need#i#"]#) />
</cfloop>
If I run the loop outside the cfset tag like this:
<cfloop index="i" from="1" to="12">
needRecord.setNeed#i#(#form["need#i#"]#)
</cfloop>
The code runs and generates what I would like to generate within the cfset tag. Any idea what I'm doing wrong?
Any help would be greatly appreciated.