Re: header("Location with & in URL

From: Date: Fri, 21 Jun 2002 23:38:44 +0000
Subject: Re: header("Location with & in URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103352@lists.php.net to get a copy of this message
Tom, Include the $returl variable within the quotes, like this: header("Location: $returl"); If that doesn't work, add these two lines just before the header() function: echo "<h1>[$returl]</h1>"; exit; Maybe that will uncover something. Chris Tom Beidler wrote:
I'm trying to use header("Location to redirect to a URL that has variables in it, ie. http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client When it redirects I get the url minus everything after the first ampersand. I tried using htmlentities with no joy like so... $retUrl = htmlspecialchars ($retUrl); if ($retUrl != "") { header("Location: " . $retUrl);


« previous php.general (#103352) next »