<cfset StartMonth = 4>
<cfset EndMonth = Month(Now())>

<select size="1" name="month1" >   <option value="A" selected>All Months</option>
  <cfloop index="CurrMonth" from="#StartMonth#" to="#EndMonth#">
    <option value="#CurrMonth#">#MonthAsString(CurrMonth)#
  </cfloop>
</select>

Not tested...should work

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Asim Manzur
  To: CF-Talk
  Sent: Thursday, June 24, 2004 12:18 PM
  Subject: from APRIL 2004 till current month

  <select size="1" name="month1" >   <option value="A" selected>All Months</option>
  </select>

  How can I generate the dynamic months till this month from April in select box

  Regards,
  Asim Manzur
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to