That works perfectly thanks a lot appreciate the help.
><cfset now = Year(Now())> ><cfset past = now - 8> ><cfset future = now + 8> > ><cfoutput> > <cfloop index="y" from="#past#" to="#future#"> > #y#<br /> > </cfloop> ></cfoutput> > >hello, > >I am attempting to create a coldfusion function that will populate a range >of years in a dropdown select box. i would need it to select the 8 years >before the current year as well as the 8 years following the current year. > >I was able to do it with javascript to populate from current to 8 years in >future but it is preferred if the javascript is avoided since some of the >users are on pc's from the stone age and have issues with javascript >compatability. > >If anyone could give me a code snippet of some sort that may help me in >gaining this functionality that would be greatly appreciated. > >Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:313064 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

