Hey,
I have been beating my head of this all afternoon. I want to create a dynamic drop down list where the index is used to create the month.
so something pretty much like this but working:
<cfform name="form1">
<cfselect name="month_loop">
<cfloop index="month_loop" from="1" to="12">
<option label="DateFormat(#month_loop#,mmmm)" value="DateFormat(#month_loop#,mmmm)">#DateFormat(#month_loop#,mmmm)#</option>
</cfloop>
</cfselect>
</cfform>
Right now it loops the 12 times but instead of displaying a month it just displays DateFormat(#month_loop#,mmmm) 12 times… any idea’s?