Re: Question about Error Redirect (URL ShortCuts)
| From: | Jason Sheets | Date: | Thu, 04 Sep 2003 14:36:43 +0000 |
| Subject: | Re: Question about Error Redirect (URL ShortCuts) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161651@lists.php.net to get a copy of this message | ||
Hi ccj,
GET data is passed in the URL, POST data is not so loss of the information would be expected. It sounds like you should use sessions, it is a better way of passing data between pages.
Take a look at http://www.php.net/manual/en/ref.session.php
Jason
ccj wrote:
Hi all Based on descriptions in /urlhowto.php -- Get it on your site, I tried to redirect GET/POST data to a third page, say, aaa.php ---> error.php ---> bbb.php ==== aaa.php: <form action="unknown.php" method="GET"> .... ==== error.php: <? $QSTRING = $_SERVER['REDIRECT_QUERY_STRING'] ; .... Header("Location: bbb.php?" . $QSTRING) ; ?> ==== Everything goes right with GET method, but POST goes wrong in error.php: The $HTTP_RAW_POST_DATA is lost. The error.php page could not get the posted data. Any idea ? Regards, CCJ