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>";

Maybe that will uncover something.


Tom Beidler wrote:

>I'm trying to use header("Location to redirect to a URL that has variables
>in it, ie.
>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 (
To unsubscribe, visit:

Reply via email to