In this tutorial, we will learn form submission using jQuery without navigate out from the page.
It accepts user input, processes it and sends it to a php file called "process.php". The PHP script will send
a notification email to the recipient. Of course, in case browser couldn't support javascript/XMLHttpRequest,
we have a second plan ready, the form will submit the data using the normal form submission.
a notification email to the recipient. Of course, in case browser couldn't support javascript/XMLHttpRequest,
we have a second plan ready, the form will submit the data using the normal form submission.
How do we do that? Easy, we specified POST and ACTION attributes in the FORM element, if browsers
couldn't support it, that will submit the form straight away. If the browsers could support it, the javascript will
cancel the submit button default behaviour. And we need to code the PHP script to support both GET and
POST methods and produce the result accordingly.
Download here Full Source Code
use it for free :)
couldn't support it, that will submit the form straight away. If the browsers could support it, the javascript will
cancel the submit button default behaviour. And we need to code the PHP script to support both GET and
POST methods and produce the result accordingly.
Click here
ReplyDeleteClick Here
Click Here
Click Here
Click Here