Re: Using Header() to pass information...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Where's Chris when we need him? I would be interested in also hearing his 
thoughts here too.

"Jochem Maas" <jochem@xxxxxxxxxxxxx> wrote in message 
news:444A91E9.40209@xxxxxxxxxxxxxxxx
> Todd Cary wrote:
>> If I use
>>
>>   if ($send)
>>     header("location: mypage.php?message=" . $message);
>>
>> the data ($message) is passed in the URL.  Is there a way to pass the 
>> data as though it was a POST method i.e. not in the URL?
>
> probably, but I don't know how off the top of my head.
>
> look into using $_SESSION instead and maybe even consider that you
> could save yourself a redirect by doing something _like_:
>
> if ($send) {
> $_POST['message'] = $message;
> include './mypage.php';
> exit;
> }
>
> now sticking stuff into $_POST or $_GET probably isn't the best tactic -
> if a security guru could comment on that I'd appreciate it also!
>
>>
>> Todd
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux