uh, $_POST itself is a superglobal array. So echoing or referencing just $_POST will always return just "array ("
What you need to do is find out what the post variable is called. eg.
$_POST['xml']
Once you have that "xml" or whatever variable name, you can then look to manipulate the data.
I'd recommend running this to see all the variables that are POSTed:
Code: Select all
<?php
echo '<pre>';
print_r ($_POST); // useful & works for any array
echo '</pre>';
?>
Now, if you want to extract the entire XML in its form, then simply work with the POST variable. But if you want just the values and variable names from the XML, such as
$message['id'] = 56735688 then I would recommend using a PHP parser to manipulate/read it.
I'd recommend looking at these links:
-
http://www.php.net/manual/en/ref.xml.php
-
http://www.php.net/manual/en/ref.simplexml.php (highly recommended)
-
http://www.topxml.com/php_simplexml/default.asp
And there is always Google.