Home  >  Article  >  Backend Development  >  file_get_contents("php://input", "r") example introduction_PHP tutorial

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

WBOY
WBOYOriginal
2016-07-20 11:16:35925browse

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...
Statement:
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