index.php
Edit
editform.js
function editform(id){
var obj=document.getElementById("editform");
h.open('get','editform.php?id='+id);
h.onreadystatechange=function(){
if(h.readyState == 4){
obj.innerHTML=h.responseText;
}
}
h.send(null);
}
function editq(){
var id1=document.getElementById("id1").value;
var n=document.getElementById("name1").value;
var a=document.getElementById("address1").value;
var obj1=document.getElementById("display1");
h.open('get','editq.php?id='+id1);
h.onreadystatechange=function(){
if(h.readyState == 4){
obj1.innerHTML=h.responseText;
}
var obj2 = document.getElementsByTagName('div');
obj2['editform'].style.visibility = 'hidden';
}
h.send(null);
}
editform.php
|