# PHP and Flash

**URL:** <https://forum.kirupa.com/t/php-and-flash/199298>\
**Category:** Uncategorized\
**Created:** [September 1, 2006, 9:07am UTC](https://forum.kirupa.com/t/php-and-flash/199298 "2006-09-01T09:07:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hommer](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Hommer](https://forum.kirupa.com/u/Hommer)\
**Post date:** [September 1, 2006, 9:07am UTC](https://forum.kirupa.com/t/php-and-flash/199298/1 "2006-09-01T09:07:53Z")

</div>

Hi.  
I have read several tutorials on PHP and Flash here on [Kirupa.com](http://Kirupa.com)  
I just don’t think the tutorials are basic enough.  
I tried to make a simple flash file that sends some variables to a php-script, which manipulates the variables and send them right back to Flash.

I have these things on my stage.

- An input field with var = “name”
- An dynamic field with var = “greeting”
- A button with actions:

```auto
on (release) {
     loadVariables ("phpscript.php", 0, "POST");
}

```

- A php-script file (phpscript.php):

```php
<?
// Receiving the variables.
$name = $_POST['name'];

// Sending variables to Flash.
print "greeting = Hello" . $name . "how are you";
?>

```

But nothing happens when I upload the files to my web-server and runs them.  
Does anyone know whats wrong?
