Hello. I just want to know if the following is possible with PHP and MySQL:
Let’s say I have a page with the following components:
1) A calendar representing the month of January at the top of the page.
2) A big Input Box in the middle of the page.
3) A “Submit” button at the bottom of the page.
Now this is what I want the user to be able to do:
User clicks on January 1st to select it and types information in the Input Box.
Then when he clicks January 2nd, I want the Input Box to empty itself of the January 1st info so that the user can now type information for January 2nd.
BUT if he were to click back on January 1st, the original January 1st info would show up again in the Input Box.
This way the user could just click a day, fill out information for that day, click the next day, fill out info for that day etc...
Then when he’s done with all the days, he could hit “Submit” only once instead of hitting “Submit” 31 times and all the information could be saved to a MySQL table.
I know I could just have 31 input boxes and the user would only have to hit “Submit” once, but I’ve seen it done the way I mentioned above with just the one Input Box and I’d really like to implement it.
If anyone can give me some sample script, that would be awesome! But I’m mostly just hoping that someone could tell me what tools I would need. Do I need any special PHP library to accomplish this? Can this even be accomplished with PHP or would I need something like ASP? Is JavaScript involved? Any help would be greatly appreciated. Thank You.