View Single Post
Old 02-10-2003, 01:40 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
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.
sde is offline   Reply With Quote