Re: [PHP] Re: query strings and other delights
kbai...@howlermonkey.net wrote: > ...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. > > You might find phpinfo() particularly useful as an indicator of how php is configured and most of the built in variables such as environment variables. Also http://php.net/manual/en/language.variables.external.php http://php.net/manual/en/reserved.variables.php Spend a little while perusing the documentation at php.net - it is very good. And php.net/function-name is a handy way of looking up a specific function. Cheers -- David Robley Diagonally parked in a parallel universe. Today is Prickle-Prickle, the 14th day of Chaos in the YOLD 3177. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: query strings and other delights
Cool. SO, now it's in a string, I can chop, slice, dice, make gazillions of steak fries, and drive on. So, now we can munch a webpage with a query string as a KEY to unlock access to it, and use DIE to stop the process if it is not there, or is the correct key, so far making sense? Quoting Nathan Rixham : kbai...@howlermonkey.net wrote: ...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. yup 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? $_SERVER['QUERY_STRING'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: query strings and other delights
kbai...@howlermonkey.net wrote: ...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. yup 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? $_SERVER['QUERY_STRING'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: query strings and other delights
...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 : kbai...@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 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php