<?php
$datetime_start = strtotime(date('D Y/m/d'));
$datetime_end = strtotime(date("D Y/m/d",mktime(0, 0, 0, (date('m') + 1), 0, date('Y'))));
$datetime_temp = $datetime_start;
?>
<select class="input-box" name="">
<?php while ($datetime_temp <= $datetime_end) { ?>
<option><?php echo date('D d/m/Y', $datetime_temp); ?></option>
<?php
$datetime_temp = strtotime('+1 day', $datetime_temp);
}
?>
</select>
No comments:
Post a Comment