Use something like this
echo "<a href=\"www.mysite.com\doc2.html?arg=$arg\">label</a>";
Then on doc2.html you can use the variable $arg.
This is assuming you've got your web server set up to parse .html pages and PHP??
When ever you pass a variable in the url, it is automatically made into a variable on the next page.
<a href="http://www.yoursite.com/page.php?id=3">Click Here</a>
In your code for php.php, you can use the variable $id, which will be equal to 3.
Hopefully that helps you.
---John Holmes...