PDA

View Full Version : Getting POST vars from a Flash AS3 request



Aneurin, Mark II
March 15th, 2008, 09:46 PM
Since it isn't being answered in the Flash/AS3 forums, it can't hurt to copy it here.

In this instance, loader is a URLLoader object.

ActionScript Code:

var url:URLRequest = new URLRequest("script.php");
url.method = "POST";
url.data = stringData;
loader.load (url);





How do I pick up url.data in PHP? I assume it's $_POST['something'] but the way I have this set up and the data I am using means I can't simply print_r ($_POST) in PHP to find out..

Appreciate any help!

Aneurin, Mark II
March 16th, 2008, 12:28 AM
Not to worry, I've got it working now.

peregrinus
May 21st, 2008, 05:27 AM
Not to worry, I've got it working now.

It would be kind if you could share your solution... :-)