Re: header variable ?
| From: | Tom Rogers | Date: | Thu, 11 Nov 2004 00:50:22 +0000 |
| Subject: | Re: header variable ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201731@lists.php.net to get a copy of this message | ||
Hi,
Thursday, November 11, 2004, 8:51:49 AM, you wrote:
JS> What variable "header" use? If I send something in header, what GLOBAL
JS> variable header use?
If you are talking about redirection....
You have to use the GET method then look in $_GET or $_REQUEST
$url = 'http://somewhere.com/test.php?variable=hello';
header("Location: $url");
exit;
//test.php
if(isset($_GET['variable'])) echo 'Variable =
'.$_GET['variable'].'<br>';
--
regards,
Tom