View Full Version : Calendar using PHP?

04-04-2007, 02:12 PM
Hi guys,

Is it possible to make a calendar in PHP rather than hard-coding it in HTML? For example, I'm looking to make one for June 2007 and on each line I'd like to have the day, the date and then a checkbox containing the date, so for example:

<input type="checkbox" name="date" value="01062007" /> Tues. 1st

Is it possible to do this dynamically using PHP?

Thanks in advance

04-04-2007, 03:51 PM

Take a look at the examples on date() (http://php.net/date) There's one in there that does a basic calendar