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]
|