Re: Drop down list with date

From: Date: Tue, 12 Nov 2002 21:04:28 +0000
Subject: Re: Drop down list with date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124064@lists.php.net to get a copy of this message
Try this one: echo "<select>" ; for ($d=0 ; $d <7 ; $d++) echo "<option onchange=\"javascript:document.location.href='link'\">".date("d/m/y", strtotime("+$d day"))."\n " ; echo "</option> </select>" ; ----- Original Message ----- From: "Miguel Brás" <molino26@netcabo.pt> To: <php-general@lists.php.net> Sent: Wednesday, November 13, 2002 4:15 AM Subject: [PHP] Drop down list with date > 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 > > Tomorrow 13th will display > 13/11/02 > 14/11/02 > 15/11/02 > 16/11/02 > 17/11/02 > 18/11/02 > 19/11/02 > > and so on... > > Thx > Regards > Miguel > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#124064) next »