如下图,在PHP中使用post传值时,出现下图问题,使用php://input可读取,但使用$_POST无法读取。 50
书写代码如下:if(!empty($_POST)){echo'用户名:'.$_POST['users'].'<br/>密码:'.$_POST['password'];}e...
书写代码如下:if (!empty($_POST)){ echo '用户名:'.$_POST['users'].'<br/>密码:'.$_POST['password'];}else{ var_dump($_POST);}若使用$_POST读取,需如何配置php.ini.php版本为5.6.
图片看不清楚,请看这里:
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0 展开
图片看不清楚,请看这里:
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询