手机
当前位置:查字典教程网 >编程开发 >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")实例介绍】相关文章:

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

两种php调用Java对象的方法

PHP个人网站架设连环讲(一)

超级简单的发送邮件程序

PHP4引用文件语句的对比

用Socket发送电子邮件(利用需要验证的SMTP服务器)

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

PHP 高手之路(一)

透析PHP的配置文件php.ini

Apache设置虚拟WEB

精品推荐
分类导航