Fred04
Member
Hello,
I have a form that I use not really to save some data but to generate some records in my database. I have removed the 'submit' button and created my own button element that I called 'generate'
Each time the user click on 'generate', I want to populate a 'calendar' table. Actually I want to insert some dates based on the parameters specified in my form (ie: year = 2012 and periodicity = every Monday --> the result would be to insert about 52 dates in my table). Then it would be good to have an 'alert' to confirm this is done.
I can trigger a JS 'on click' but how do I redirect that to some php instructions? where should I save my php file?
Explanations are welcome and I will update the wiki with the solution.
I have a form that I use not really to save some data but to generate some records in my database. I have removed the 'submit' button and created my own button element that I called 'generate'
Each time the user click on 'generate', I want to populate a 'calendar' table. Actually I want to insert some dates based on the parameters specified in my form (ie: year = 2012 and periodicity = every Monday --> the result would be to insert about 52 dates in my table). Then it would be good to have an 'alert' to confirm this is done.
I can trigger a JS 'on click' but how do I redirect that to some php instructions? where should I save my php file?
Explanations are welcome and I will update the wiki with the solution.