PHP and Flash

Hi.
I have read several tutorials on PHP and Flash here on 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:
on (release) {
     loadVariables ("phpscript.php", 0, "POST");
}
  • A php-script file (phpscript.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?