<div class="custom-dropdown">
<select id="year">
<?php
$currentyear=date("Y");
$fromyear=1970;
for($i=$currentyear;$i>=$fromyear;$i--)
echo "<option value=$i>$i</option>";
?>
</select>
</div>
<select id="year">
<?php
$currentyear=date("Y");
$fromyear=1970;
for($i=$currentyear;$i>=$fromyear;$i--)
echo "<option value=$i>$i</option>";
?>
</select>
</div>
0 comments:
Post a Comment