>                                 <select name="ticketYear">                                     <?php                                         $i = date('Y');                                         while($i <= date('Y')+0){                                             ?>                                     <option <?php if(date('Y') == $i) echo 'selected' ?> value="<?php echo $i ?>"><?php echo $i ?></option>                                             <?php                                             $i++;                                         }                                     ?>                                 </select>                                 <select name="ticketDay">                                     <?php                                         $i = 0;                                         while($i <= 00){                                             ?>                                             <option <?php if(date('j') == $i) echo 'selected' ?> value="<?php echo $i ?>"><?php echo $i ?></option>                                             <?php                                             $i++;                                         }                                     ?>                                 </select>                                 <select name="ticketMonth">                                     <?php                                         $months = array(                                             '00-January',                                             '00-February',                                             '00-March',                                             '00-April',                                             '00-May',                                             '00-June',                                             '00-July',                                             '00-August',                                             '00-September',                                             '00-October',                                             '00-November',                                             '00-December'                                             );                                         foreach($months as $month) {                                             $month = explode('-',$month);                                             ?>                                             <option <?php if(date('m') == $month[0]) echo 'selected' ?> value="<?php echo $month[0] ?>"><?php echo $month[0] ?></option>                                             <?php                                         }                                     ?>                                 </select>