RE: [PHP4BETA] POST and GET variables
| From: | Samuel Liddicott | Date: | Mon, 22 Nov 1999 15:54:28 +0000 |
| Subject: | RE: [PHP4BETA] POST and GET variables | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6658@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Harold [mailto:harold@salt.xgroup.de]
> Sent: Monday, November 22, 1999 03:44 PM
> To: php4 mailing list
> Subject: [PHP4BETA] POST and GET variables
>
>
> for php4 beta3, is it best to use $HTTP_POST_VARS[variablename] or
> $HTTP_GET_VARS[variablename] over $variablename ?
>
> i have not yet tried this, but i presume it is also possible to use
> $variablename over $HTTP_COOKIE_VARS[variablename]?
As you say, yes.
I agree it is better to use HTTP_*_VARS[] instead of global vars, and better
not to use http_track_vars.
I think it would also be nice to have an HTTP_FORM_VARS which is an
selectably ordered combination of HTTP_*_VARS - rather like the current
scheme for sticking them all in GLOBAL, but safer.
Sam