header("Location with & in URL

From: Date: Fri, 21 Jun 2002 23:22:20 +0000
Subject: header("Location with & in URL
Groups: php.general 
Request: Send a blank email to php-general+get-103347@lists.php.net to get a copy of this message
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); Any ideas?

« previous php.general (#103347) next »