Question about Error Redirect (URL ShortCuts)
| From: | ccj | Date: | Thu, 04 Sep 2003 13:13:56 +0000 |
| Subject: | Question about Error Redirect (URL ShortCuts) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161645@lists.php.net to get a copy of this message | ||
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