What error did you receive? What was displayed? Please show your code; I
hope there was no line break as shown below. Unfortunately, my mail client
breaks lines after about 40 cchars.
I agree with you that it is handled as any string.
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 9:34 AM
To: Rick Emery
Subject: Re: [PHP] querystrings passed in header("Location: n") ?
On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote:
I tried that, and it didn't work. But it does raise a question, which
I'll ask in a minute. I also tried doing
$errorcode = basename($_SERVER['PHP_SELF']);
$errorcode = urlencode($errorcode);
Which also didn't work.
My question is unrelated to my problem, simply for my own edification:
Can you break out of a quoted string and use the dot to concatenate a
variable in the way that you did in your example? I didn't know that
was allowed -- I suppose the "header()" function is simply taking a
string as an argument ("Location: n"), but can we do this kind of string
manipulation within a function's arguments? I'm not trying to question
you, only to tie up a loose end.
Back to the subject at hand, I am sorry to report that header() is not
passing along the querystring.
Web Developer Temp
Media Lab, H.H. Brown
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php