Re: Pulling variables from a URL
| From: | Daniel Guerrier | Date: | Tue, 14 Oct 2003 20:06:52 +0000 |
| Subject: | Re: Pulling variables from a URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166114@lists.php.net to get a copy of this message | ||
Who keeps telling people to use :)
$_GET[$username]
it should be $_GET['username']
$_GET is a key value pair array.
the key is the name of the html form variable in this
case username and the value is the value entered in
the form.
--- Adrian <adrian@planetcoding.net> wrote:
> lol variables in quotes - especialli when there is
> only the variable
> are really ugly.
> you should use $_GET[$username]...
>
> > Use double quotes:
> > $_GET["$username"];
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com