手机
当前位置:查字典教程网 >编程开发 >php教程 >file_get_contents("php://input", "r")实例介绍
file_get_contents("php://input", "r")实例介绍
摘要:解释不清,直接上例子index.html复制代码代码如下:action.php复制代码代码如下:

解释不清,直接上例子

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")实例介绍1

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

【file_get_contents("php://input", "r")实例介绍】相关文章:

Oracle Faq(Oracle的版本)

高亮度显示php源代码

PHP+MYSQL的文章管理系统(一)

用函数读出数据表内容放入二维数组

资料注册后发信小技巧

php恢复数组的key为数字序列的方法

做一个有下拉功能的留言版

论坛头像随机变换代码

PHP 高手之路(一)

PHP调用三种数据库的方法(3)

精品推荐
分类导航