First we create the link that "onclick" will populate the div or span id below "div_populate".
Make sure you have the javascript source "ajax.js" included into this file.


• Get Data 1 »    • Get Data 2 »
or you can use a form to submit data (using "onchange" on the form input or "onclick" on the submit button):








Posting data from a form can be done many ways so keep looking around for a solution.
If I get a chance I will put up a complete example for you.

Here is the place where the data from the "content_ajax.php" page will be displayed.

©2012 Eire-Web Design Ireland