Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdown - dynamic

Status
Not open for further replies.

damipera

Technical User
Dec 1, 2005
134
GB

hi guys, can you give me some ideas as to how i could achieve this using asp/vbscript?

i want to have a dropdown like this when it's october 2014
Code:
<select name="select">
    <option value="0">oct 2014</option>
    <option value="-1">sep 2014</option>
    <option value="-2">aug 2014</option>
     .
     .
     .
</select>

but when it november 2014, i want it to look something like this
Code:
<select name="select">
    <option value="0">nov 2014</option>
    <option value="-1">oct 2014</option>
    <option value="-2">sep 2014</option>
    <option value="-3">aug 2014</option>
     .
     .
     .
</select>

same thing when for december 2014, and so on and so forth.

thanks for any inputs.

 
Check the month in the creation loop and output the HTML code appropriately.



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top