A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sending XML from flash to Php

Threaded View

  1. #1
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875

    Sending XML from flash to Php

    having slight problem sending XML from flash to php...

    the actionscript is

    Code:
    var xmlSend:XML = new XML("<data><name>from flash name</name></data>");
    xmlSend.send("http://localhost/work/employees.php", "_blank");
    and my employees.php is

    Code:
    <?php
    	$raw_xml = file_get_contents("php://input");
    	echo $raw_xml;
            echo "hello there"; // this echoes out fine
    ?>
    However the php file does not echo any XML out to the screen ..any idea what the problem maybe? The php file is getting called correctly as it opens up and "hello there" is being echoed out..

    Thanks in advance
    Last edited by silentweed; 11-12-2006 at 01:21 PM.
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center