# Need help ! php variable to actionscript var

**URL:** <https://forum.kirupa.com/t/need-help-php-variable-to-actionscript-var/300823>\
**Category:** Uncategorized\
**Created:** [November 28, 2009, 9:26am UTC](https://forum.kirupa.com/t/need-help-php-variable-to-actionscript-var/300823 "2009-11-28T09:26:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kruk](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kruk](https://forum.kirupa.com/u/kruk)\
**Post date:** [November 28, 2009, 9:26am UTC](https://forum.kirupa.com/t/need-help-php-variable-to-actionscript-var/300823/1 "2009-11-28T09:26:25Z")

</div>

Hello,

im very new in actionscript…

i write my own code for php and actionscript…and i had a problem with it…

How to pass php variable to action script variable ???

e.g

**my php code (test.php) is**

```auto
<?php
print"&phpVar=1";
?> 

```

**My action script code is**

> loadVariablesNum(“test.php”, 0, “POST”);

if(phpVar == ‘1’)  
{  
condition = “Condition A”;

}  
else  
{

```
condition = "Condition B";

```

}

The output should be \*\* “Condition A”\*\* Since phpVar = 1 …

And my problem is…

The output of this script is always **“Condition B”**

Means this script not detect **“phpVar = 1”**

So my question, how to show this output “Condition A” by using php variable ?

Pleas help me…any suggestion should be great

Thanks
