PHP Form Select with Date Range

Create a form select with a range of years automatically with PHP. [php] &lt;select&gt; &lt;?php foreach(range(2008, (int)date("Y")) as $year) { echo "\t&lt;option value=’".$year."’&gt;".$year."&lt;/option&gt;\n"; } ?&gt; &lt;/select&gt; [/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 …