Oh if your trying to get everything after then you would have to do what he said.
Like if you were re-linking to a dynamically created site,
you would do
<a href="<?=$PHP_SELF?id=$id;?>">Click Here!</a>
Of course, just like he said, you might want to do some variable testing before you do this. Like if you weren't sure how many variables are in the address, you might have to test which ones are true (ne), and add those to the end of the statement. This could easily be accomplished with an if statement or something of that sort.