$_SERVER['PHP_SELF']
for the page name and $_GET['id']
for a specific parameter.
try print_r($_GET);
to print out all the parameters.
for your request echo $_SERVER['PHP_SELF']."?id=".$_GET['id'];
return all the parameters echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];