Here is the url:
http://localhost/test.php?id=http://google.com/?var=234&key=234
And I can’t get the full $_GET[‘id’] or $_REQUEST[‘d’].
<?php
print_r($_REQUEST['id']);
//And this is the output http://google.com/?var=234
//the **&key=234** ain't show
?>
$my_url outputs:
So now you can get this value using
$_GET['id']or$_REQUEST['id'](decoded).Output
To get every GET parameter:
$keyis GET key and$valueis GET value for$key.Or you can use alternative solution to get array of GET params
$get_parametersis same as url decoded$_GET.