Re: Header() and POST data
| From: | Curt Zirzow | Date: | Thu, 06 May 2004 22:28:53 +0000 |
| Subject: | Re: Header() and POST data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185570@lists.php.net to get a copy of this message | ||
* Thus wrote Todd Cary (todd@aristesoftware.com):
> I need to go to another page and I use the
>
> header("location: " . $the_url_to_the_page);
>
> Is it possible to use this method with POST so that the info does not
> show in the URL?
No.
You can use session's to pass data without the user knowing about
it. And is probably a better method than using GET/POST.
$_SESSION['var_to_pass'] = 'its value';
header("location: " . $the_url_to_the_page);
Then $the_url_to_the_page can read the session data.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."