Hey. Firstly, I need pages on my webiste to contain the following link:
go.php?id=5&url=http://www.newdomain.com
however, it's not valid XHTML. So I've encoded it (which looks horrible and I rather I hadn't but I feel its the only way). And now I cannot decode it. I've used urldecode but it still shows:
go.php?id%3D5%26url%3Dhttp%3A%2F%2Fwww.newdomain.com
I tried:
...but it doesn't work. What would be absaloutley perfect would be something like:
go.php/5/http://www.domain.com
where 5 is the id and http://www.domain.com is the domain.
Thanks
go.php?id=5&url=http://www.newdomain.com
however, it's not valid XHTML. So I've encoded it (which looks horrible and I rather I hadn't but I feel its the only way). And now I cannot decode it. I've used urldecode but it still shows:
go.php?id%3D5%26url%3Dhttp%3A%2F%2Fwww.newdomain.com
I tried:
PHP:
urldecode($_GET['$url']);
// ...and...
$url2 = $_GET['$url'];
$url = urldecode($url2);
...but it doesn't work. What would be absaloutley perfect would be something like:
go.php/5/http://www.domain.com
where 5 is the id and http://www.domain.com is the domain.
Thanks
Last edited:







