• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

creating loop for "year" select list

I'm attempting to create a loop to populate a select list to display a range of years.

For some reason, the select list works, but is not displaying any of the years that would be generated from the loop.

________________________________

<select name="year">

<option value="0"
<CFIF (isDefined("FORM.year") AND "0" EQ FORM.year)>
selected
</CFIF>
>
-Select a Year-
</option>


<CFLOOP index="index" from="2009" to"1900" step="-1">

<CFOUTPUT>
<option value="#index#"
<CFIF (isDefined("FORM.year") AND
"#index#" EQ FORM.year)>
selected
</CFIF>
>
#index#
</option>
</CFOUTPUT>

</CFLOOP>


<option value="< 1900"
<CFIF (isDefined("FORM.year") AND "< 1900" EQ FORM.year)>
selected
</CFIF>
>
< 1900
</option>

</select>

_____________________________________________

All I get in the drop down is the parts above and below the loop, but nothing from the loop itself. Nor do I get any errors.
 
Originally posted by: troytime
i haven't seen cold fusion code in eons, thanks for the flash back from my cf development days 🙂

i still love it.. coding on BlueDragon Server (Free Edition).
 
i still think its a great language

its development curve was really great back in its day (not saying its dead)

in 2001 i cranked out a complete message board system, with login, subscriptions, threaded views and linear views.........in a single 7 hour day.
 
I hope CF grows rapidly with the open source editions of Blue Dragon and Railo.

Railo 3.1 will be free and open source with very little restriction, with close to cf8 compatability, more tags/function, oh and it's faster than cf8.
 
Back
Top