djp1988 Posted June 21, 2008 Share Posted June 21, 2008 Hi I would like to somehow have a calander type object with the possibility to select dates on my web site, I with for a user to be able to select a start and end date according to availability for them to visit somewhere.How can I add this calander type object? Link to comment Share on other sites More sharing options...
Ingolme Posted June 21, 2008 Share Posted June 21, 2008 You'll need to work a lot with DOM elements and the Javascript date object. It could be a pretty long script if you want to add a lot of features. You get dates with Javascript and you write it onto the page by creating table elements with the DOM.It can be done exactly the same with PHP, though it would require page reloading to add events to dates and other things. You would get date information with PHP's date object, and then you'd write the HTML for it.References:Javascript Date ObjectPHP Date Object Link to comment Share on other sites More sharing options...
djp1988 Posted June 21, 2008 Author Share Posted June 21, 2008 well not those kind of features I am thinking more along the lines of a Reservation Calendar for check in and check out dates and I could block certain dates from selecting... any ideas? Link to comment Share on other sites More sharing options...
Ingolme Posted June 21, 2008 Share Posted June 21, 2008 Have a database of dates, when making a reservation for a new date it searches a database to see if the date is already taken. If the date is taken the user is advised that they can't make a reservation for that date.You can show which dates are already reserved by writing a calendar of a selected month and filling in the dates with the database entries. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.