您的位置 首页 php

php 接收 微信小程序post没有数据

今天在用小程序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’) 接收数据 然后在转

文章来源:智云一二三科技

文章标题:php 接收 微信小程序post没有数据

文章地址:https://www.zhihuclub.com/78420.shtml

关于作者: 智云科技

热门文章

网站地图