View Single Post
Old 02-28-2007, 03:00 PM  
roly
Confirmed User
 
Join Date: Aug 2002
Posts: 1,844
php experts - simple php question?

hi

i'm trying to make a very simple jump script for a particular reason and it works to a point but seems to give me an error.

i've got a redirect script link.php which contains the following:

Code:
<?php 
$url = ($_GET['lnk']);
header("Location: $url");
exit;
?>
and i'm linking to a url like this:
Code:
http://www.somesite.com/?some-query-string!&id=27
and so i'm linking to my script like this:

Code:
http://mydomain.com/link.php?lnk=http://www.somesite.com/?some-query-string!&id=27
but it seems to be cutting off the string from the ampersand and sending it to:

Code:
http://www.somesite.com/?some-query-string!
and not to:

Code:
http://www.somesite.com/?some-query-string!&id=27
i know it's something stupid i'm doing wrong anyone got any ideas, it would be really appreciated

thanks in advance
roly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote