如果我使用帖子將表單提交到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