problem with header() and post data

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
how do i keep my $_POST data if i use something like header
("Location: processlogin.php") without using curl?
Posted with NewsLeecher v3.0 Final
 * Binary Usenet Leeching Made Easy

Re: problem with header() and post data

nomopofom ( wrote:

Quoted text here. Click to load it


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 ?

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


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

Erwin Moller

Site Timeline