今天在用小程序form 提交数据时,服务器死活接收不到数据,使用
var_dump($_REQUEST);
print_r($_POST);
echo $_POST;
都是Array、array[0]{}、Array()
咋办,从源头看吧
js 寻源 post提交”content-type”: “application/json” // 默认值
$GLOBALS [“HTTP_RAW_POST_DATA”]
php不能直接接收
file_get_contents(‘php://input’) 接收数据 然后在转