Re: Re: query strings and other delights

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...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@xxxxxxxxx>:

kbailey@xxxxxxxxxxxxxxxx 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






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux