Jump to content

generate year drop down list


j007ha

Recommended Posts

how am i going to generate a auto year drop down list by using php?

 

For example : now the year is 2008, so i want the drop down list to generate a drop down list which consists the year before 3 and after 3 years of the year 2008.

 

So what i want is

 

<option>2005</option>

<option>2006</option>

<option>2007</option>

<option>2008</option>

<option>2009</option>

<option>2010</option>

<option>2011</option>

 

i very very appreciate any help from u all ^^ ;D

Link to comment
https://forums.phpfreaks.com/topic/125911-generate-year-drop-down-list/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.