<select name="mnth">
<?php
$month = date('n'); //To Get current month value
$max = (12-$month) + 24;
for($m=0;$m<=$month;$m++){?>
<option value="<?php echo date("01-m-Y");?>">
<?php echo date('F Y', mktime(0,0,0,$month + $m,1));?></option>
<?php }?>
</select>
<?php
$month = date('n'); //To Get current month value
$max = (12-$month) + 24;
for($m=0;$m<=$month;$m++){?>
<option value="<?php echo date("01-m-Y");?>">
<?php echo date('F Y', mktime(0,0,0,$month + $m,1));?></option>
<?php }?>
</select>
0 comments:
Post a Comment