Still many of you don’t know how to use Ajax, some of you who know how to use it are using it by the old XMLHttpRequest() object. Do you know jQuery makes it really easy to make a Ajax request. Here we will first make a jQuery Ajax post request and display the response from the Php page.
Ok here are few simple steps to do it:-
Step 1:- Add jQuery library to header
(Either download the latest jQuery library and upload it or use Google jQuery library Api) Here i will use the jQuery library hosted on Google.
Step 2:- Make a jQuery Ajax post request
After adding the jQuery library you can use all the jQuery functions.
Step 3:- Server page
Here we will write code for our test.php page where we will read the posted data, process it and reply according to the data. But as we are only testing here, so we will just print all the posted data as the reply.
here is the code:-

Leave a Reply