# Flash to php

**URL:** <https://forum.kirupa.com/t/flash-to-php/174034>\
**Category:** Uncategorized\
**Created:** [January 2, 2006, 4:18am UTC](https://forum.kirupa.com/t/flash-to-php/174034 "2006-01-02T04:18:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdd](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kdd](https://forum.kirupa.com/u/kdd)\
**Post date:** [January 2, 2006, 4:18am UTC](https://forum.kirupa.com/t/flash-to-php/174034/1 "2006-01-02T04:18:50Z")

</div>

Problem solved: i had to make the “var” globel. :lol:

anyone who has done flash to php would know this…

flash file:

```auto

var temp = 5;
loadVariables ( "myfile.php" , this , "POST" );

```

now, i’ve a textbox on stage var name = “something”

this is my php:

```php

$howdy = $HTTP_POST_VARS['temp'];
print "&something=hi" . urlencode($howdy) . "&";

```

after i run the flash file, the “something” textbox has “hi” only; meaning this doesn’t work corrctly. “something” textbox should get “hi5”.

BUT… if i do the following it works corrctly.

i made another textbox var and instance named “hey”

```auto

_root.hey = 5;
loadVariables ( "myfile.php" , this , "POST" );

```

still i’ve a textbox on stage var name = “something”

this is my php, NOTICE THE CHANGE:

```php

$howdy = $HTTP_POST_VARS['hey'];
print "&something=hi" . urlencode($howdy) . "&";

```

now, after i run the flash file, the “something” textbox has “hi5”.  
in conclusion, when i use a textbox as a “var” correct info is passed to the php file, but if i just use “var” in coding, it doesn’t work corrctly. i do NOT want to use a textbox in this process, any solution that would eliminate textbox, so i can just use “var” in code? thanks in advace. 🙂
