Flash AS3 POST variables to .php file

I am trying to figure out why this is not working. I have a Flash .swf that is attempting to POST some variables to a .php file in the same location as my .swf. My facebook app is in FBML Canvas. Here is the function I am calling. The .php file is never receiving anything. HELP!

public function sendData():void{
var request:URLRequest = new URLRequest(“http://apps.facebook.com/MYAPPNAME/api/update.php”);
request.method = URLRequestMethod.POST;
var upldata:String = “gameStatus=”+whichType+"&userID="+UID;
var myVariables:URLVariables = new URLVariables(upldata);
request.data = myVariables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, doComplete);
loader.load(request);
}