MicroSun
04-26-2006, 11:31 AM
Hello,
I have the test code see below, which creates an XML and send it to PHP. My only problem is that how can I access it in the PHP code.:confused: At the moment the PHP code has an empty $_GET and empty $_POST. I tried to test it in flash and in a browser too.
What do I wrong?
Thanks!
var xmlBook:XML = new XML();
var xnRoot:XMLNode = new XMLNode(1, "book");
var xnAuthorTag:XMLNode = new XMLNode(1, "author");
var xnAuthorName:XMLNode = new XMLNode(3, "Mark Twain");
var xnTitleTag:XMLNode = new XMLNode(1, "title");
var xnTitle:XMLNode = new XMLNode(3, "Huckleberry Finn");
xmlBook.appendChild(xnRoot);
xnRoot.appendChild(xnAuthorTag);
xnRoot.insertBefore(xnTitleTag, xnAuthorTag);
xnAuthorTag.appendChild(xnAuthorName);
xnTitleTag.appendChild(xnTitle);
xmlBook.send("http:/test/form.php","_self","POST");
I have the test code see below, which creates an XML and send it to PHP. My only problem is that how can I access it in the PHP code.:confused: At the moment the PHP code has an empty $_GET and empty $_POST. I tried to test it in flash and in a browser too.
What do I wrong?
Thanks!
var xmlBook:XML = new XML();
var xnRoot:XMLNode = new XMLNode(1, "book");
var xnAuthorTag:XMLNode = new XMLNode(1, "author");
var xnAuthorName:XMLNode = new XMLNode(3, "Mark Twain");
var xnTitleTag:XMLNode = new XMLNode(1, "title");
var xnTitle:XMLNode = new XMLNode(3, "Huckleberry Finn");
xmlBook.appendChild(xnRoot);
xnRoot.appendChild(xnAuthorTag);
xnRoot.insertBefore(xnTitleTag, xnAuthorTag);
xnAuthorTag.appendChild(xnAuthorName);
xnTitleTag.appendChild(xnTitle);
xmlBook.send("http:/test/form.php","_self","POST");