Send xml from ActionScript to PHP

Posted by Vish on Stack Overflow See other posts from Stack Overflow or by Vish
Published on 2010-05-25T11:05:29Z Indexed on 2010/05/25 11:11 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

Hi, I have values inside an XMLList in Actionscript. Need to send these values to the DB and update it. My actionscript code is as follows:

http://www.freeimagehosting.net/uploads/dbbc612193.gif

  1. How can I send the XMLList data to PHP? Should I add a toString() to it?
  2. Also what should be the contentType in Flex.

How can I catch this inside PHP, pl let me know, trying to use, this way,

if($user -> isAllowedAccess()) {

    header("Content-type:text/xml");
    $postedData =  $_POST["pdata"];     

   // $xmldoc = simplexml_load_string($POST['pdata']);
   // echo($xmldoc);

}

No luck. Pl let me know.

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml