corillo181 Posted June 16, 2007 Share Posted June 16, 2007 how do i do 3 list type menu one with the 12 months next with the days in that month and the year.. so want i want is when people select a month the next list show the days as soon the pick the month. Link to comment https://forums.phpfreaks.com/topic/55868-calendar-type-listmenu/ Share on other sites More sharing options...
corillo181 Posted June 16, 2007 Author Share Posted June 16, 2007 this is what i got so far, but i dont know how to turn the months so that whne you pick a month the number of days for that month shows <form action="" method="get"> <label>month <select name="month" id="month"> <? $jd=cal_to_jd(CAL_GREGORIAN,date("m"),date(1),date("Y")); $monthname=jdmonthname($jd,1); ?> <option value="<?=$monthname?>"><?=$monthname?></option> <? ?> </select> </label> <label>days <select name="days" id="days"> <option value="1" selected="selected">1</option> <? $thismonth=(int)date("m"); $thisyear=date("Y"); $numdaysinmonth=cal_days_in_month(CAL_GREGORIAN,$thismonth,$thisyear); for($count=1;$count<=$numdaysinmonth;$count++){?> <option value="<?=$count?>"><?=$count?></option> <? } ?> </select> </label> </form> Link to comment https://forums.phpfreaks.com/topic/55868-calendar-type-listmenu/#findComment-276006 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.