I'm trying to autofill the date function for a dropdown. I thought it would be a fairly straightforward bit of code. I've searched online and fiddled with it for about an hour now and still no luck. Any assistance would be greatly appreciated. :)
$day = 1;
while ($day < 32) {
echo "<option value=/"$day/"> $day </option>";
$day++;
}
echo "<option value=\"$day\"> $day </option>";