@paulkoanFeb 14.2008 — #Would they need to be saved for each person? Would people need to be able to see each others highlighted days? Would the owner of the site need to know which days were clicked?
Perhaps you could start with what you are trying to achieve, then we can go from there to see what is the best approach.
@skChauthorFeb 14.2008 — #Yes, they need to be saved separate for each person.
Well, I have a database with clients and only the owner must be able to click/select days. The intention of this application is to manage payments for each client.
@paulkoanFeb 14.2008 — #Right, I see, so your calendar.php needs to be able to understand which days were clicking, and store this information in the database.
From what I can tell, you are currently identifying which dates are selected by changing the style of the cell. So you are going to need another javascript function that you can attach to a button that passes all of the highlighted cells to calendar.php, and then calendar.php would then save them to the database.
Calendar.php would also need to read them from the database, and display them as the calendar is displayed.
You will also need a means of identifying users, such as with a login screen with userids and passwords.
You have a lot to do. Have you considered looking for an application that does what you need already?
@skChauthorFeb 16.2008 — #I was thinking to make a javascript function that goes through each cell and checks the style of that cell. If style = "selected" then puts it in a hidden field and when it's done, sends that field to a php page.