Before we are going with example let’s read something about jQuery and AJAX.
In this example we are submitting a simple form using AJAX.
To create a form first we are creating a database with name “ajax”.
Create a config file with name config.php.
$dbhost = "localhost"; //replace it with your host name
$dbuser="root"; //replace it with your database username
$dbpassword=""; // replace it with your database password
$dbname="ajax"; // replace it with your database name
?> Continue reading
What is jQuery ?
What is AJAX ?
If you need to check the example on jQuery AJAX, you can check it out here
Create the first file Ajaxlogin.php :
// For Mozilla, Safari, …
var xmlHttp = new XMLHttpRequest();
// For Internet Explorer
var xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”);
xmlHttp.open(‘POST’, strURL, true);
xmlHttp.onreadystatechange = function()
if (xmlHttp.readyState == 4)
} Continue reading