PHP代码:
var_dump($_POST);
var_dump($_REQUEST);echo file_get_contents("php://input")."<br>";HTML代码:
<html>
<body>
<form action="index.php" method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="test" id="test" value="1">
<input type="submit" name="sbumit" id="submit" value="submit">
</form>
</body>
</html>
var_dump($_POST);
var_dump($_REQUEST);echo file_get_contents("php://input")."<br>";HTML代码:
<html>
<body>
<form action="index.php" method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="test" id="test" value="1">
<input type="submit" name="sbumit" id="submit" value="submit">
</form>
</body>
</html>
可能你屏蔽了部分superglobal 配置,具体什么配置我不太清楚;若有时间帮你查查。