Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

receiving XML data from flash

Status
Not open for further replies.

sandravega

Programmer
Feb 10, 2004
43
AR
Hi,
I want to save some data from flash, and be able to retrieve it. I figured that the best way is

-creating xml in flash
-sending it to php
-saving into a database

So i'm using the flash' xml.send method... but i just can´t figure out how do i "receive" the data in php.

so, in flash:
------------------------
menuXml.load("myXML.xml");
...
//Add childnodes here or whatever
...
menuXml.send("myscript.php")
------------------------
and that's for flash sake.
But then...

In myscript.php, how can I "catch" what I've send? Is it a "$menuXML" variable?

Or am I supposed to code:
menuXml.send("myscript.php?menuXml) ?

Thank you all

Sandra Vega

Since English is not my native language, I apreciate every comment to improve it. Thanks again

 
I believe you'd be better served in the Flash forum. They can tell you about the Flash methods to send data to scripts.

From a PHP prospective there are two ways to send data to a script via a form: POST and GET.
You can inspect what is sent to a script by using:
Code:
<?php
echo &quot;<pre>\n&quot;;
print_r($_GET);
print_r($_POST);
?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top