Re: Can you insert into $_POST manually?
| From: | Scott Houseman | Date: | Thu, 09 Jan 2003 12:20:27 +0000 |
| Subject: | Re: Can you insert into $_POST manually? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130927@lists.php.net to get a copy of this message | ||
Hi.
If you add them to the $url variable as in a query string, they
should be available in that page's $_GET array e.g.
if $url = "http://myhost.com/mypage.php?id=$id&page=$page&user=$user"
then you would have the values
$_GET{'id'}
$_GET{'page'}
$_GET{'user'}
created for you with the values as given.
Cheers
Scott
On 2003/01/09 02:04, Noel Wade wrote:
Hi all, So I have a page that processes information and then "echo"s out a redirect that looks like this: <META HTTP-EQUIV="REFRESH" CONTENT="4; URL=<? echo $url ?>;"> The thing is, there are some variables that I would love to pass in $_POST or $HTTP_POST_VARS to the page referred to in "$url". Is there any way to stuff this data into either of these globals so that the "$url" page can access 'em? Thanks a bunch! --Noel-- Scott Houseman Senior Software Developer Junk Mail Publishing (Pty) Ltd T + 27 12 342 3840 ext 2806 F +27 12 342 3876 E scott@junkmail.co.za | www.junkmail.co.za A 1312 Pretorius Street, Hatfield, Pretoria P O Box 6574, Pretoria, 0001, South Africa +27 82 491 8021