daynah,
Your code worked like a charm. Thank you very much.
I did manage to get mine to work using only numbers for the month. (which is not what I wanted).
Would there have been an easy way to convert just the month numbers into actual names? This is very minimal code to get the same results and would be easy to work with for February and what not. If you have time let me know! Thanks!!
-Jon
I used the following code:
<select name="month" id="month">
<option selected>Month</option>
<?php for ($month = 1; $month <= 12; $month++) { echo "<option"; if (date("n")==$month) {echo "
SELECTED";} echo ">$month</option>\n"; }?>
</select>
<select name="day" id="day">
<option selected>Day</option>
<?php for ($day = 1; $day <= 31; $day++) { echo "<option"; if (date("j")==$day) {echo " SELECTED";}
echo ">$day</option>\n"; } ?>
</select>
<select name="year" id="year">
<option selected>Year</option>
<?php $currentYear = date("Y"); for ($year = $currentYear; $year <= ($currentYear+2); $year++) {
echo "<option"; if (date("Y")==$year) {echo " SELECTED";} echo ">$year</option>\n"; }?>
</select>