note 46582 added to function.header
| From: | marcelo at redcetus dot com | Date: | Sat, 16 Oct 2004 00:01:39 +0000 |
| Subject: | note 46582 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78624@lists.php.net to get a copy of this message | ||
Redirect the POST like this:
header("HTTP/1.0 307 Temporary redirect");
header("Location: https://myserver.redcetus.com/otherlocation");
if you dont put the 307 status code, the browser will use the GET method even if the original
request was a POST
WARNING: the POST method should not be idempotent. If you need to use this, you better take a closer
look to your design.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46582
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46582&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46582&report=yes
Search -- http://master.php.net/manage/user-notes.php