#native_company# #native_desc#
#native_cta#

Raw POST Data

By Dan Shepherd
on April 8, 2002

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 <[email protected]>
	http://www.kyboshed.com
	
	Sends bugs and suggestions to [email protected]
	
	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);
}

?>