RE: [PHP] Declaring variables from the url
| From: | Jay Blanchard | Date: | Mon, 07 Aug 2006 13:18:14 +0000 |
| Subject: | RE: [PHP] Declaring variables from the url | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-240241@lists.php.net to get a copy of this message | ||
[snip]
http://www.domain.com/index.php?var=1
And then, to use the variable, all I have to do is use it in the script,
like so:
echo "This is the value of the variable: " . $var;
[/snip]
echo $_GET['var'];