Re: $_POST And $_REQUEST
| From: | Marco Tabini | Date: | Sun, 06 Oct 2002 13:56:54 +0000 |
| Subject: | Re: $_POST And $_REQUEST | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22232@lists.php.net to get a copy of this message | ||
>$_REQUEST is an associative array consisting of the contents of $_GET,
>$_POST, $_COOKIE, and $_FILES
Also, they are not function but arrays, as Hatem said.
You can usa $_REQUEST as a "catch-all" that provides you with both what
was passed to your page through the URL query ($_GET) and what was
posted to the webserver through HTTP ($_POST). IMHO, it's always better
to use the more specific arrays ($_GET or $_POST), because that makes
your pages more accurate and, therefore, less open to possible attacks.