mlse
08-13-2008, 11:20 AM
Hi all,
The following example will make the variables x and y available in mypage.php as $_GET data:
header ("Location: mypage.php?x=1&y=2");
Is there a way to send variables to mypage.php using as POST data? (so that they need not be passed as part of the URL).
EDIT: I know I can mimick this using $_SESSION, but I wonder if there is a neat way of incorporating it into a request before the redirect (which ellicits a response) so that I don't have to do it explicitly with $_SESSION.
The following example will make the variables x and y available in mypage.php as $_GET data:
header ("Location: mypage.php?x=1&y=2");
Is there a way to send variables to mypage.php using as POST data? (so that they need not be passed as part of the URL).
EDIT: I know I can mimick this using $_SESSION, but I wonder if there is a neat way of incorporating it into a request before the redirect (which ellicits a response) so that I don't have to do it explicitly with $_SESSION.