Hi all,
I am working on a web page in which a user enters form information, and the idea is that javascript will validate all the form entries and if its all valid, then a PHP script will insert it into a MySQL db. How should I go about doing this? I currently have the form, and a JS function that runs onclick. Now how do I have the PHP script take over from here? I would also like to be able to go to a thank you page if all is okay, else I want to reload the page with an error message.
Any help is appreciated.
I am working on a web page in which a user enters form information, and the idea is that javascript will validate all the form entries and if its all valid, then a PHP script will insert it into a MySQL db. How should I go about doing this? I currently have the form, and a JS function that runs onclick. Now how do I have the PHP script take over from here? I would also like to be able to go to a thank you page if all is okay, else I want to reload the page with an error message.
Any help is appreciated.