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”)
myData.onLoad = function(succes)
{
if(succes)
{
trace (this.home);
_root.txtHome.text = this.home;
}
else { trace("Error loading data"); }
}