AS3 POST to PHP - help needed.
I am new to talking to PHP.
Trying to test sending data to a .php page both on a localhost server and on a remote server
I am trying following code:
AS3:
<?php
echo $_POST["username"]."post";
echo $_POST["amount"]."post";
echo $_GET["username"]."get";
echo $_GET["amount"]."get";
echo "hello world 808080";
?>
When sending to the localhost server I am getting an HTTPStatus of 200 back - suggesting something is working.
If I set loader.dataFormat = URLLoaderDataFormat.TEXT; to URLLoaderDataFormat.VARIABLES
I get an error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
which suggests that when I use URLLoaderDataFormat.TEXT; that the data is being sent.
However I can't get the .php page to update.
Any help greatly appreciated.
Best Tommy Banana