Hi
I am posting an array from page-1 as follows:
var params = {};
params[‘id’] = idtval;
params[‘pswd’] = pswd;
params[‘inithint’] = inithint;
params[‘fnhint’] = fnhint;
params[‘lnhint’] = lnhint;
var paramsJ = JSON.stringify(params);
xmlhttp.open(“POST”,“ajax-d.php”,true);
xmlhttp.setRequestHeader(“Content-type”, “application/x-www-form-urlencoded”);
xmlhttp.setRequestHeader(“Content-length”, paramsJ.length);
xmlhttp.setRequestHeader(“Connection”, “close”);
xmlhttp.send(paramsJ);
In page-2, using FireBUG, it appears in the header as 4 good parameters.
But I cannot seem to get anything out of $_POST. It appears empty.
I have tried a lot of very rookie syntax attempts as follows and nothing works: