Powered by Blogger.

How to get the value of Form with Jquery-Ajax in PHP


Ajax is asynchronous javascript. With Ajax we can get the value of any element, whether it is form, paragraph or etc. , without a refreshing the web page.

Here is the small and easy example of JQUERY AJAX with PHP:-

Step 1: Make a form in HTML in index.php.

Note: In the above code, I have given a name and id attribute to form <input> element, name will become the key while fetching the value of the “input” tag and id will be used to take value without submitting the form .

Step 2: Then in <head> tag write a jquery ajax script:-

Step 3: Now make process.php and REQUEST the key to display in div.


No comments