Ajax を使用してコンテンツを投稿しhttp.send(encodeURIComponent(params));
、エンコードに使用していますが、PHP でデコードできません。私は POST を使用しているので、エンコードが必要だとは思いませんでしたか? PHPで値をデコードする方法について混乱しています...
params = "guid="+szguid+"&username="+szusername+"&password="+szpassword+"&ip="+ip+"&name="+name+"&os="+os;
//alert(params);
document.body.style.cursor = 'wait';//change cursor to wait
if(!http)
http = CreateObject();
nocache = Math.random();
http.open('post', 'addvm.php');
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.onreadystatechange = SaveReply;
http.send(encodeURIComponent(params));