You are here: Re: help « PHP Programming Language « IT news, forums, messages
Re: help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация