470,849 Members | 1,135 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

XML being passed to PHP via POST

I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.

Jul 17 '05 #1
2 1697

<se******@swbell.net> wrote in message
news:41*****************@news.dallas.sbcglobal.net ...
I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.

Hi,
not much help, but, add this to your page :-

echo '<pre>';
print_r($_POST);
echo '</pre>';

It won't help interpreting the data, but will do a recursive print to the
browser of all the post data. At leas then, you'll know what your dealing
with. Depending on the content of the post, you might also want to try :-

echo '<pre>';
print_r($GLOBALS);
echo '</pre>';

This will produce a lot of output, but you'll be able to inspect all data
sent to your page including session data etc. which is usefull for debugging
/ development.

HTH,
Martin
Jul 17 '05 #2
In article <41*****************@news.dallas.sbcglobal.net>, se******@swbell.net wrote:
I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.


With wrappers, $data = file_get_contents('php://input');

some thingies that might interest you:
http://www.amfphp.org/
http://ghostwire.com/resources/phpobject/

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike Discenza | last post: by
7 posts views Thread by Donna Hawkins | last post: by
5 posts views Thread by Francis Bell | last post: by
5 posts views Thread by Chuck Anderson | last post: by
3 posts views Thread by Brian.Abernathy | last post: by
103 posts views Thread by chochote | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.