Re: One more date question (NOOOOOOO) :-)
| From: | Peter Beckman | Date: | Thu, 27 Feb 2003 05:42:01 +0000 |
| Subject: | Re: One more date question (NOOOOOOO) :-) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25947@lists.php.net to get a copy of this message | ||
Sure --
for ($x=0;$x<12;$x++) {
echo
"<option>".date('F',mktime(0,0,0,(date('n')+$x),date('j'),date('Y')))."</option>\n";
}
For the day limitation, there are lots of javascripts out there to do that.
Peter
On Thu, 27 Feb 2003, Chris Payne wrote:
> Hi there everyone,
>
> Sorry about all these emails :-) I have one final question (For this
> week - LOL). How can I get the current month + the next 11 months in a
> dropdown form box? Ideally there'd be 3 boxes, 1 with the day, dependant
> on the month you select plus the year, though I can hardcode the year
> without a problem.
>
> Any ideas how I could do this?
>
> Thanks for everything, you are all life savers. Oh and after thinking
> about it I realized how dumb storing Credit Card details in a DB were :-)
>
> Chris
---------------------------------------------------------------------------
Peter Beckman Internet Guy
beckman@purplecow.com http://www.purplecow.com/
---------------------------------------------------------------------------