Forum Moderators: coopster
[mysite.com...]
The problem I'm having is when someothersite.com has a long query string and some of the variables get truncated. My php knowledge is limited so I'm using
$url = $_GET['newsite'];
to grab the URL, but it doesn't work when the new URL has multiple variables. How do I keep the entire URL intact as it's passed to my script?
$newsite = [someothersite.com...]
$newsite = str_replace("&", "[MyAmp]", $newsite);
[mysite.com...]
then on the page that receives just reverse it..
$newsite = $_GET["newsite"];
$newsite = str_replace("[MyAmp]", "&", $newsite);
$newsite = urlencode("http://www.someothersite.com/page.php?var1=1&var2=2");
[mysite.com...]
In go.php
$newsite = $_GET["newsite"];
$newsite will be "http://www.someothersite.com/page.php?var1=1&var2=2" - no need to change.