Posted By

krisdb on 03/09/07


Tagged

ASP


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

nelda751
asifrizvigmailcom


month & year drop downs


 / Published in: ASP
 

  1. <select name="MONTH">
  2. <option value=""></option>
  3. <%
  4. for i = 1 to 12
  5. response.write "<option value="""&i&""">" &i&" - "&monthname(i,1) & "</option>"
  6. next
  7. %>
  8. </select>
  9.  
  10. <select name="YEAR" style="width:60px;">
  11. <option value=""></option>
  12. <%
  13. for i = year(now)+10 to year(now) step -1
  14. response.write "<option value="""&i&""">"&i&"</option>"
  15. next
  16. %>
  17. </select>

Report this snippet  

You need to login to post a comment.