creating loop for "year" select list

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
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.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
i haven't seen cold fusion code in eons, thanks for the flash back from my cf development days :)
 

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
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).
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
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.
 

Furor

Golden Member
Mar 31, 2001
1,895
0
0
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.