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. -----Original Message----- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:34 AM To: Rick Emery Cc: PHP Subject: Re: [PHP] querystrings passed in header("Location: n") ? On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote: > try: > header("Location: > domain.com/errorpage.php?errorcode=".urlencode($errorcode)); 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); header("Location: http://domain.com/errorpage.php?errorcode=$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. 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