I have to display years from 1940 to 2006 in a drop down and when 2007 would be completed, it should come in that drop down too. How can I do this?
For taking 1940 to 2006 in the drop down, i am doing this
Code: Select all
<select id="yy" name="yy">
<?
for($i = 1940; $i <= 2006; $i++) { echo "<option>{$i}</option>";
}
?> </select>TIA.