Home > Backend Development > PHP Tutorial > file_get_contents('php://input', "_PHP教程

file_get_contents('php://input', "_PHP教程

WBOY
Release: 2016-07-21 15:01:53
Original
909 people have browsed it

The explanation is not clear, just give an example
index.html

Copy the code The code is as follows:


< br/>





action.php
Copy code Code As follows:

$raw_post_data = file_get_contents('php://input', 'r');
echo "------$_POST ------------------
";
echo var_dump($_POST) . "
";
echo " -------php://input-------------
";
echo $raw_post_data . "
";
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327976.htmlTechArticleCan’t explain clearly, just go to the example index.html and copy the code as follows: form action="action.php" method ="post" input type="text" name="userName" id="userName" /br/ input type="text" n...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template