this example i'll use:
http://www.codenewbie.com/?foo=bar
PHP Code:
<?
echo $foo;
?>
that will print "bar"
now sometimes global variables will be turned off in some php configurations, so you will have to use the following. when you send variables in the url, you are using the 'GET' method.
PHP Code:
<?
echo $_GET['foo'];
?>
this will also print "bar"
hope this helps.