Version: 1
Type: Function
Category: HTTP
License: GNU General Public License
Description: Gets the raw post data from any post operation regardless of enctype.
<?php
/* RawPOST V1.0
(c)2002 Danny Shepherd <danny@kyboshed.com>
http://www.kyboshed.com
Sends bugs and suggestions to danny@kyboshed.com
This text must not be removed
*/
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($_POST))
{
echo rawPOST($_POST);
}
?>