recently in the development of the third release page, now encountered a problem, when I use post from a to page B, the B page does not get the data that the post carries.
View request head Find method changed to get, ask what is the situation, how can I modify
The code is as follows:
Browser View Request head find post submit to get, ask what is the situation, how can I modify
Request URL:http://1535uf1143.iask.in/index.php?a=cso&code=031q5DH32yHVeJ07jHI3205CH32q5DHG&state=STATERequest Method:GETStatus Code:200 OKRemote Address:122.228.19.57:80
Reply content:
Recently in the development of the third release page, now encountered a problem, when I use post from a to page B, the B page does not get the data that the post carries.
View request head Find method changed to get, ask what is the situation, how can I modify
The code is as follows:
Browser View Request head find post submit to get, ask what is the situation, how can I modify
Request URL:http://1535uf1143.iask.in/index.php?a=cso&code=031q5DH32yHVeJ07jHI3205CH32q5DHG&state=STATERequest Method:GETStatus Code:200 OKRemote Address:122.228.19.57:80
To the B page has become get, that you accept the B page accept parameters to the way is get AH
Could have brokered one.
When you call post This method of your definition, be carefulpost("?a=cso",{serviceOrderJson :JSON.stringify(json),id:123});
Serious suspicion is that this parameter of yours is wrong. At least for now I'm copying your code to be able to run normally
Javascript
var temp = document.createElement("form"); var PARAMS = [1, 2, 3, 4, 5]; var URL = '/test/wocaocao2'; temp.action = URL; temp.method = "post"; temp.style.display = "none"; for (var x in PARAMS) { var opt = document.createElement("textarea"); opt.name = x; opt.value = PARAMS[x]; temp.appendChild(opt); } document.body.appendChild(temp); temp.submit();
PHP Service Side
public function wocaocao2Action(){ var_dump($_POST);}