|
Posted by C. (http://symcbean.blogspot.com/) on 01/07/08 12:47
On 5 Jan, 18:06, 6e <aot...@hotmail.com> wrote:
> Hi!
>
> Please help!!!
>
> Im using php and Im trying to redirect my users to a new page along
> with keeping all of the POST variables...
>
You can't.
In the script which catches the POST you could convert the POST vars
to GET vars and redirect to the URL with a constructed query, or store
the POST vars somewhere in the session. Regardless, the POST will be
empty in the redirected page.
HTTP redirection was never intended for this kind of purpose - even
when its done properly (the header('location....) function returns a
302 response which is completely wrong for this in HTTP/1.1 and even
if you use a 307 redirect it messes up lots of stuff.
Stop trying to fix the wrong problem.
C.
Navigation:
[Reply to this message]
|