Re: Drop down list with date
| From: | Jason Wong | Date: | Tue, 12 Nov 2002 17:25:05 +0000 |
| Subject: | Re: Drop down list with date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124026@lists.php.net to get a copy of this message | ||
On Wednesday 13 November 2002 01:15, Miguel Brás wrote:
> Hello guys,
>
> I have a question:
>
> How can I create a drop down menu where the choices are the days of the
> month, displaying always the next 7 days?
>
> What I mean is, create a drop down menu and show the today's date, next
> day, and next...
>
> Example: Today is 12th, then the menu shows the following option to be
> choosen
> 12/11/02
> 13/11/02
> 14/11/02
> 15/11/02
> 16/11/02
> 17/11/02
> 18/11/02
You'll need to use some combination of time() & strftime(), and whilst not
strictly necessary but highly recommended strtotime().
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
I bought some used paint. It was in the shape of a house.
-- Steven Wright
*/