PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > PHP教程 > 正文

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

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:本篇文章是对file_get_contents("php://input", "r")的实例进行了详细的分析介绍,需要的朋友参考下index.html复制代码 代码如下:<form ...
     本篇文章是对file_get_contents("php://input", "r")的实例进行了详细的分析介绍,需要的朋友参考下

    index.html

     
    复制代码 代码如下:
     <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

     
    复制代码 代码如下:
    <?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/>";
    ?>  

    file_get_contents("php://input", "r")实例介绍
    file_get_contents("php://input", "r")实例介绍
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-10-1102-1.html
    相关热词搜索: