Forum Moderators: coopster
redirect.php?id=1234&url=http://www.foo.com?id=1&source1=whatever&source1=whatever
The URL that is passed is:
[foo.com?id=1&source1=whatever...]
That is, I'm losing everything after the second ampersand. I know why. How do I prevent it? Trying to avoid doing a second DB call just to get the link that corresponds to the link ID.
TIA
[edited by: HughMungus at 9:15 pm (utc) on Nov. 13, 2004]
$target = "http://www.example.com/foo.html?a=123&b=456";
header("Location: /redirect.php?url=".url_encode($target));