I have not yet written the code but I have it planned....so unfortunately I can't show you a code yet. This should be a simple question and there should be no need for my end of the code. Now with all that said.......
Of course this is done though a form. I don't want a sumbit button to submit the form, instead I want javascript to handle the entire form. Now of course, I know how to do this this is not the issue. Once the form is submitted I want javascript to validate the page and alert the user of their errors. Once the user has submitted the form error free I want javascript to somehow use php and mysql to insert date into my database.
Now, my issue is getting javascript to insert the data into the database.
Would this javascript code work?
Of course this is done though a form. I don't want a sumbit button to submit the form, instead I want javascript to handle the entire form. Now of course, I know how to do this this is not the issue. Once the form is submitted I want javascript to validate the page and alert the user of their errors. Once the user has submitted the form error free I want javascript to somehow use php and mysql to insert date into my database.
Now, my issue is getting javascript to insert the data into the database.
Would this javascript code work?
Code:
document.write('<?php //My Code ?>')
Comment