如果我使用帖子将表单提交到php页面,我可以在通过使用header('location: ...php')
重定向到达的页面上使用这些帖子值吗?
例子:是否通过php头重定向发布数据持久性?
<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
上的welcome.php,如果我做header("Location: welcomBack.php")
我还可以访问$_POST['Name']
和$_POST['E-mail']
...(从welcomeBack.php
)?
不可以。 – mario