# PHP: reading data posted from flash

**URL:** https://forum.kirupa.com/t/php-reading-data-posted-from-flash/67698
**Category:** programming
**Created:** [October 18, 2004, 10:11pm UTC](https://forum.kirupa.com/t/php-reading-data-posted-from-flash/67698 "2004-10-18T22:11:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![danoise](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@danoise](https://forum.kirupa.com/u/danoise)
#### Post date: [October 18, 2004, 10:11pm UTC](https://forum.kirupa.com/t/php-reading-data-posted-from-flash/67698/1 "2004-10-18T22:11:52Z")

</div>

I have a simple script called display.php:

\<?php  
echo ‘\<pre\>’;  
print\_r($\_POST);  
echo ‘\</pre\>’;  
?\>

It is supposed to display the data posted from flash. Works with other (HTML) forms

Inside Flash, I have some xml data (xmlData) I want to post

```auto
 var xmlVars = new LoadVars(); 
xmlVars.xml_data = xmlData.toString;
xmlVars.contentType = "text/xml";
xmlVars.send("display.php", "_blank", "POST");

```

Note that I have an ISP that does not have the newest version of PHP, so I can’t use the fancy php://input for reading the data.

But isn’t the php script supposed to work?

plz help !
