# Value from textarea into flash

**URL:** <https://forum.kirupa.com/t/value-from-textarea-into-flash/193451>\
**Category:** Uncategorized\
**Created:** [July 13, 2006, 1:39pm UTC](https://forum.kirupa.com/t/value-from-textarea-into-flash/193451 "2006-07-13T13:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sova](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sova](https://forum.kirupa.com/u/sova)\
**Post date:** [July 13, 2006, 1:39pm UTC](https://forum.kirupa.com/t/value-from-textarea-into-flash/193451/1 "2006-07-13T13:39:35Z")

</div>

i would like to have a textarea in a php page that when a button is clicked sends that information into a flash movie and update the text in a dynamic textfield.  
does anyone know how to do this, i thought it was quite straight forward but havent managed to sort it out. it works if i just send in another variable, but not from a form.  
here is my code… greatful for help!

php —  
\<textarea name=“homeTxt” vrows=“7” cols=“20” \>\</textarea\>

$home = $\_POST[‘homeTxt’];  
echo “&home=”.$home;

flash—  
myData = new LoadVars()  
myData.ref = this  
myData.load(“[http://localhost/test/fromPhp.php](http://localhost/test/fromPhp.php)”)  
myData.onLoad = function(succes)  
{  
if(succes)  
{  
trace (this.home);  
\_root.txtHome.text = this.home;  
}

```
        else { trace("Error loading data"); }
   }
```
