This should do something close to what you're after:
<?php
function rawPost($postData,$arrayName="")
{
$postString="";
foreach ($postData as $key=>$value)
{
if (is_array($value))
{
if (!empty($arrayName))
$key=$arrayName."[$key]";
$postString.=rawPost($value,$key);
}
else
{
if (empty($arrayName))
$postString.="$key=$value ";
else
$postString.=$arrayName."[$key]=$value ";
}
}
return $postString;
}
if (!empty($HTTP_POST_VARS))
{
echo rawPost($HTTP_POST_VARS);
print_r($HTTP_POST_VARS);
}
?>