you have to use &
instead of another ?
this should work
mysite.co/index.php?q=anothersite.co&id=2
EDIT:
$encoded = encode("http://anothersite.co?id=2");
and then
mysite.co/index.php?q=$encode
Question
My $GET
parameter could be url
with another paramenters (mysite.co/index.php?q=anothersite.co?id=2)
and i need to ignore them.
But im getting lost them (mysite.co/index.php?q=anothersite.co)
after going to the url.
How i can fix it? Without decoding url.
Solution
you have to use &
instead of another ?
this should work
mysite.co/index.php?q=anothersite.co&id=2
EDIT:
$encoded = encode("http://anothersite.co?id=2");
and then
mysite.co/index.php?q=$encode