# Php/as

**URL:** <https://forum.kirupa.com/t/php-as/243282>\
**Category:** programming\
**Created:** [November 5, 2007, 12:01pm UTC](https://forum.kirupa.com/t/php-as/243282 "2007-11-05T12:01:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luiner](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@luiner](https://forum.kirupa.com/u/luiner)\
**Post date:** [November 5, 2007, 12:01pm UTC](https://forum.kirupa.com/t/php-as/243282/1 "2007-11-05T12:01:59Z")

</div>

I have problem with php -\> actionscript comunication

in PHP i have:

echo “&fil=Home&”;

flash receive:

Home

and this is ok, but i need variable  
in PHP i have:

$ttx=“Home”;  
echo “&fil=$ttx&”;

flash receive:

$ttx

I tried plenty of combinations like  
echo “&fil=$ttx&”; receiving $ttx  
echo “&fil=”.$ttx."&"; “.$ttx.”  
echo “&fil=”.$ttx."&"; “.$ttx.”

In one word, i need send variable from PHP to variable in AS

some more data:  
in flash i’m usig  
loadVariables(“vars.php”, “\_root”, “POST”);  
and PHP 5.2.4

Thanx alot for any answer.
