# PHP and Flash MX

**URL:** <https://forum.kirupa.com/t/php-and-flash-mx/9800>\
**Category:** flash\
**Created:** [December 18, 2002, 9:42pm UTC](https://forum.kirupa.com/t/php-and-flash-mx/9800 "2002-12-18T21:42:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0ff33d](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@c0ff33d](https://forum.kirupa.com/u/c0ff33d)\
**Post date:** [December 18, 2002, 9:42pm UTC](https://forum.kirupa.com/t/php-and-flash-mx/9800/1 "2002-12-18T21:42:40Z")

</div>

I am trying to have a flash movie send a variable to a php script and have the php script echo the variable into a browser

What I have as of now is a button and an input text box  
The textbox variable is “data”, of course with out the quotes.  
The actionscript for the button is as follows:

on (release) {  
loadVariablesNum(“phpscript.php”, 0, “POST”);  
}

Now my php script is as follows:

?php  
echo "html head /head body $data /body /html ";  
?

I do have the \<\> signs in my php code I just could not get it to display correctly in the forum  
I am going mad, what am I doing wrong?  
I am using PHP4  
Please help…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 18, 2002, 9:54pm UTC](https://forum.kirupa.com/t/php-and-flash-mx/9800/2 "2002-12-18T21:54:19Z")

</div>

this might help:

[http://www.kirupaforum.com/showthread.php?s=&threadid=9616&perpage=15&highlight=php%20write%20HTML&pagenumber=2](http://www.kirupaforum.com/showthread.php?s=&threadid=9616&perpage=15&highlight=php%20write%20HTML&pagenumber=2)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 18, 2002, 10:22pm UTC](https://forum.kirupa.com/t/php-and-flash-mx/9800/3 "2002-12-18T22:22:55Z")

</div>

WOOHOOOO!!!  
I mucked with my actionscript for a few and got it to werk.

actionscript used:

on (release) {  
textbox.send(“[http://helpdeskweb/hdweb/dbegley/test.php](http://helpdeskweb/hdweb/dbegley/test.php)”, “”,“POST”);  
getURL(“[http://helpdeskweb/hdweb/dbegley/test.php](http://helpdeskweb/hdweb/dbegley/test.php)”, “\_blank”, “GET”);  
}

I used the same PHP script as well.

Thanks for you help

-caffine fiend
