note 12254 deleted from ref.apache by philip
| From: | philip@php.net | Date: | Tue, 16 Jul 2002 17:02:12 +0000 |
| Subject: | note 12254 deleted from ref.apache by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33152@lists.php.net to get a copy of this message | ||
An easier way to debug user-submitted data is with the print_r and var_dump functions (check their
manual entries to ensure your version of PHP support them).
To find all available HTTP variables use:
print_r($HTTP_*_VARS);
For variables submitted via post use only:
print_r($HTTP_POST_VARS);
And for GET:
print_r($HTTP_POST_VARS);
And fun with $GLOBALS:
print_r($GLOBALS);
Note that data is immediately printed to the browser unless buffering is used.