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

From: Date: Sat, 22 Apr 2006 20:44:41 +0000
Subject: Re: Using Header() to pass information...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-234570@lists.php.net to get a copy of this message
Where's Chris when we need him? I would be interested in also hearing his thoughts here too. "Jochem Maas" <jochem@iamjochem.com> wrote in message news:444A91E9.40209@iamjochem.com... > 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 >>

« previous php.general (#234570) next »