I am trying to pass ajax response value to a php function.
ajax.js
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
var a = xmlhttp.responseText;
}
}
I need a value to be used in PHP function.
test.php
function testFun($a);
Is this possible??? Thanks for the help!!
1 Answer