In the below code the $.POST method passes two variables to the php file empProfile.php which retrieves the employee profile from the database. Know I want to receive ID and Name from the php file to the jquery variables. Can someone help me.
data = {
personnelNo: $('#personnelNo').val(),
cnic: $('#cnic').val()
} //end of data
$.post(
"checkEmployee.php",
data,
function(data) {
var ID =; Name=;
} // end of function
); // end of post
//} //end of if statement
}); // end of blur
checkEmployee.phpreturns.. Please post that..phpfile?