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);
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php