I was wanting to display a calendar similar to the one on www.expedia.com on a web site I am building. By clicking on the days it inserts the date into a form field. Does anyone have some code that would generate the calendar part. I am having trouble figuring out which day of the week the month starts on and how many days are in each month depending on the year (with leap year etc). Thanks,
Matt
Calendar
there are quite a few calendar scripts on hotscripts.com. there have also been articles on building online calendars on phpbuilder and devshed.
-paul
http://xhawk.net
Ive found a script at the JavaScript Source at;
http://javascript.internet.com/calendars/dynamic.html
It uses dynamic html, instead of PHP, It would be possible to do in PHP if you know how to convert from Java to PHP which i don't
Ive found this PHP version as well, It may need adapting a little to suite your task
Thanks, I think this is just what I was looking for. It looks simple enough for me to adapt to my site. Thanks again.