Create a form select with a range of years automatically with PHP.
[php] <select><?php
foreach(range(2008, (int)date("Y")) as $year) {
echo "\t<option value=’".$year."’>".$year."</option>\n";
}
?>
</select>
[/php]
The above code will output the following:
<select> <option value='2008'>2008</option> <option value='2009'>2009</option> <option value='2010'>2010</option> <option value='2011'>2011</option> <option value='2012'>2012</option> <option value='2013'>2013</option> <option value='2014'>2014</option> <option value='2015'>2015</option> <option value='2016'>2016</option> </select>