try:
header("Location:
domain.com/errorpage.php?errorcode=".urlencode($errorcode));


-----Original Message-----
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:51 AM
To: PHP
Subject: [PHP] querystrings passed in header("Location: n") ?


Can you pass a querystring along in header("Location: n")?

This is my code:

// get name of current page
$errorcode = basename($_SERVER['PHP_SELF']);
// send them to "error" page with previous page's name in $_GET array
header("Location: domain.com/errorpage.php?errorcode=$errorcode");

See what I'm doing?  Trying to send the "errorpage.php" a variable in 
the querystring to identify which page sent them there.  I'd like to 
avoid HTTP_REFERER for now, if possible.  But when I get sent to 
"errorpage.php", there is no querystring at all.


Thanks,
Erik





----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to