I have the following drop down that is based on an array:
<select name=Yr>
foreach ($years as $key => $value) {
echo "<option value=".$key;
if ($key == $year) {
echo " selected";
}
echo ">". $value;
}
echo "</select>
I would like to re-write it in such a way that it will build a list of years from from -5 form not to 10+ from now, instead of using an array.
😕