note 14230 deleted from language.variables.predefined by philip
| From: | philip@php.net | Date: | Mon, 03 Sep 2001 21:43:36 +0000 |
| Subject: | note 14230 deleted from language.variables.predefined by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17582@lists.php.net to get a copy of this message | ||
this might be obvious to some but it's saved me some grief. I use this at the top of a page
that receives data from GET/POST forms
$form_vars = empty($HTTP_POST_VARS) ? $HTTP_GET_VARS : $HTTP_POST_VARS;
then just use $form_vars in my code
that way I can use either GET or POST.
very handy for debugging too, if a tad memory inefficient.