note 10392 added to Variables
| From: | misc dot anders at feder dot dk | Date: | Sun, 31 Dec 2000 18:18:11 +0000 |
| Subject: | note 10392 added to Variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9241@lists.php.net to get a copy of this message | ||
bens@benjamindsmith.com:
I too find the documentation to be a bit vague on this part but you want to read the "Variables
from outside PHP" section.
You _can_ use $argv for retrieving variables passed by the browser but usually the best (and most
common) way to do it is by using a dollar sign followed by the variable name. For instance loading
your script with this URL:
http://www.domain.com/myscript.php?myvar=myvalue
The variable $myvar would contain "myvalue".
http://www.php.net/manual/language.variables.php