note 7176 modified in ref.apache by philip
| From: | philip@php.net | Date: | Tue, 02 Oct 2001 06:07:48 +0000 |
| Subject: | note 7176 modified in ref.apache by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18456@lists.php.net to get a copy of this message | ||
Quickly view all POST variables :
<pre>
<?php print_r($HTTP_POST_VARS); ?>
</pre>
--was--
This nice piece of code I found will output the whole array of variables sent to it from a POST
operation:<br>
<br>
<br>
while(list($key,$value) = each($HTTP_POST_VARS)) {<br>
if(is_array($value)) {<br>
while(list($key2,$value2)=each($value)) {<br>
echo "array $key: $key2 -> $value2<BR>";<br>
}<br>
} else {<br>
echo "$key -> $value<BR>";<br>
}<br>
}<br>
<br>
http://www.php.net/manual/en/ref.apache.php