源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

file_get_contents("php://input", "r")实例介绍

  • 时间:2022-10-24 14:17 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:file_get_contents("php://input", "r")实例介绍
[b]解释不清,直接上例子 [/b]index.html
[u]复制代码[/u] 代码如下:
  <form action="action.php" method="post" >   <input type="text" name="userName"  id="userName" /><br/>   <input type="text" name="userPass"  id="userPass" /><br/>   <input type="submit" value="ok" />  </form>
action.php
[u]复制代码[/u] 代码如下:
<?php $raw_post_data = file_get_contents('php://input', 'r'); echo "-------\$_POST------------------<br/>"; echo var_dump($_POST) . "<br/>"; echo "-------php://input-------------<br/>"; echo $raw_post_data . "<br/>"; ?>
[img]http://files.jb51.net/file_images/article/201307/201307010931452.jpg[/img] [img]http://files.jb51.net/file_images/article/201307/201307010931453.jpg[/img]  
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部