file_get_contents('php://input', 'r') example introduction_PHP tutorial

WBOY
Release: 2016-07-20 11:16:35
Original
924 people have browsed it

Can’t explain clearly, just give an example
index.html

Copy code The code is as follows:







action.php

Copy code The code is as follows:
$raw_post_data = file_get_contents('php://input', 'r');
echo "-------$_POST------------------
";
echo var_dump($_POST) . "
";
echo "-------php://input-------------
";
echo $raw_post_data . "
";
?>

file_get_contents(php://input, r) example introduction_PHP tutorial

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/372393.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 name=userPass...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!