Dynamic Year Drop Down
| From: | Albert Padley | Date: | Fri, 17 Nov 2006 05:26:48 +0000 |
| Subject: | Dynamic Year Drop Down | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-244765@lists.php.net to get a copy of this message | ||
I want to build a select drop down that includes last year, the current year and 3 years into the future. Obviously, I could easily hard code this or use a combination of the date and mktime functions to populate the select. However, I'm looking for a more elegant way of doing this.
Thanks for pointing me in the right direction.
Al Padley