I believe you can use something like this, if it answers your question:
the URL: mydoc.php?action=something
to retrieve it:
$_GET['action']
or to print it:
echo $_GET['action']
Just make sure you don't have a form with the same name, that would mess things up.
I'm a complete newbie to PhP, so I can't be 100% certain what's stated above it in any way correct :rolleyes: