Re: Re: query strings and other delights
| From: | kbailey at howlermonkey dot net | Date: | Thu, 13 Jan 2011 18:02:25 +0000 |
| Subject: | Re: Re: query strings and other delights | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310734@lists.php.net to get a copy of this message | ||
...Holy cow... nothing to extract the query string, it's automatically part of the environment. So I just do work with the $_GET string, it's in there already... yikes.
Quoting Nathan Rixham <nrixham@gmail.com>:
kbailey@howlermonkey.net wrote:Your turn! :-D$_GET and if you do post.. (can you guess?) $_POST usage: http://www.foo.org/item1/delivery.php?item=name&code=DATA <?php $_GET['item']; // == "name" $_GET['code']; // == "DATA" OK, so $_GET is an array keyed to keywords; plug in the key, out comes the value. What if I just want the entire string?
Best, Nathan --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php