Jump to content

avp

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by avp

  1. How do I reverse the order of the year display in this code for a select dropdown list? <select required name="year" id="year"> <option value="" selected="selected"><span style="font-family: 'Open Sans', sans-serif;">Select Year:</span></option> <?php $y = Date('Y'); for ($i=$y-11; $i < $y+2; $i++) { echo '<option value="' . $i . '">' . $i . '</option>' . "\n"; } ?> </select>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.