我尝试了其他一些帖子,但从未成功。
我在 html 文件中的 php 表单是:
<form action="test.php" method="POST">
VAR:<input type="text" name="var"><br>
<input type="submit">
</form>
我在 test.php 中接收变量为<br>
$_POST['var'] ---- > doesn't work! <br>
Tried, $_REQUEST['var'] ----> doesn't work!
我使用 get request 尝试了表单,它在 test.php 的另一端使用 $_GET['var'] 和 $_REQUEST['var'] 就像一个魅力一样我可以以任何方式解析请求将该表单的请求发布到 test.php ..
感谢帮助!谢谢。