note 14230 added to language.variables.predefined.php
| From: | apathy at chaosengine dot net | Date: | Mon, 23 Jul 2001 14:31:22 +0000 |
| Subject: | note 14230 added to language.variables.predefined.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15704@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.
http://www.php.net/manual/en/language.variables.predefined.php