Zend - The PHP Company




HTTP

Add Code


Print all POSTed variables  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (12 votes)
Views: 9985
Print all variables that arrived by POST, including arrays


<?php
 
while(list($key,$value) = each($HTTP_POST_VARS)) {
        if(
is_array($value)) {
            while(list(
$key2,$value2)=each($value)) {
                echo 
"array $key$key2 -> $value2";
            }
        } else {
            echo 
"$key -> $value";
        }
    }
?>


Usage Example




Rate This Script





Search



This Category All Categories