index.php
Edit
editform.js
function editform(id){
//alert("editform")
var obj=document.getElementById("editform");
h.open('get','editform.php?id='+id);
h.onreadystatechange=function(){
if(h.readyState == 4){
//alert(h.readyState)
obj.innerHTML=h.responseText;
}
}
h.send(null);
}
function edity(){
//alert("editq")
var n=encodeURI(document.getElementById("name").value);
var a=encodeURI(document.getElementById("address").value);
alert(n)
alert(a)
var obj=document.getElementById("display");
h.open('get','editq.php?id='+id+'&name='+n+'&address='+a);
h.onreadystatechange=function(){
if(h.readyState == 4){
alert(h.readyState)
obj.innerHTML=h.responseText;
alert(h.responseText);
}
}
h.send(null);
}
editform.php
|