i wonder if anyone can help with this problem. I have a form where the dates are set (and have to be passed) in the format:
&checkin_monthday=1&checkin_year_month=2012-3&checkout_monthday=2&checkout_year_month=2012-3
so my form is like this:<select id="b_checkin_month" name="checkin_year_month" onchange="checkDateOrder('b_availFrm2', 'b_checkin_day', 'b_checkin_month', 'b_checkout_day', 'b_checkout_month');">
<option value="2012-2">February '12</option>
<option value="2012-3">March '12</option>
<option value="2012-4">April '12</option>
<option value="2012-5">May '12</option>
<option value="2012-6">June '12</option>
<option value="2012-7">July '12</option>
<option value="2012-8">August '12</option>
<option value="2012-9">September '12</option>
<option value="2012-10">October '12</option>
<option value="2012-11">November '12</option>
<option value="2012-12">December '12</option>
<option value="2013-1">January '13</option>
</select>
and then every month i have to manually delete the top month and add a new month at the end. is there anyway to automate this with php rather than the javascript route which means users with scripting disabled cant use the form.
I saw something that suggested you can do a check for current month/year with php and then set code based on the result but understandng what to do was beyond me im afraid.
Thanks in advance.