If I understand your post correctly, what you need to do is grab the $HTTP_GET_VARS of an URL.
Suppose your link is:
http://www.domain.com/file.php?id=12
When you click on the link, file.php is requested from the server. To view the URL appendage, you can do this:
echo $HTTP_GET_VARS["id"];
which would display '12'.
If the link consisted of multiple GET vars (seperated by ampersands), you could loop through the array $HTTP_GET_VARS and extract all of those values. Suppose the link was:
file.php?id=12&user=jake&home=PA
You can extract all of the variables appended to the URL like this:
while(list($k,$v)=each($HTTP_GET_VARS)) {
echo $k . "=" . $v . "<br />";
}
which would display:
id=12
user=jake
state=PA
Once you have the variables extracted on the server, what you do with 'em from there is your business...