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

From: Date: Sat, 22 Apr 2006 20:28:25 +0000
Subject: Re: Using Header() to pass information...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234569@lists.php.net to get a copy of this message
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 (#234569) next »