Database Name : Tmp
Table Name : stu
Field : roll,name,city
Client Side File Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Girfa : Save Form Data to Server</title>
<script language="javascript">
function savedata()
{
alert(roll.value+ sname.value +city.value);
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("data").innerHTML = xmlhttp.responseText;
}
};
var url='server.php?roll=' + roll.value + '&name=' + sname.value + '&city=' + city.value;
xmlhttp.open("GET", url, true);
xmlhttp.send();
}
</script>
</head>