You are here: Re: problem with header() and post data « PHP Programming Language « IT news, forums, messages
Re: problem with header() and post data

Posted by Erwin Moller on 10/14/05 12:39

nomopofom (anon@the.net) wrote:

> how do i keep my $_POST data if i use something like header
> ("Location: processlogin.php") without using curl?

Hi,

Well, the strict answer is: You don't.

So you need to store it somewhere.
Two solutions:
- Store it in the Session

- URL-encode the whole POST into a GET using ?
example:

$newloc = "processlogin.php?name=".urlencode($_POST["name"]);
$newloc .= "&lastname=".urlencode($_POST["lastname"]);

etc.

The really easy solution is of course: Make the form-action point to the
right place. ;-)

Regards,
Erwin Moller

 

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

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