animotions
02-17-2009, 10:40 AM
Hi guys.
I am using a URLLoader to send a request and 1 variable to a PHP file.
I am getting this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
But the PHP is file is not giving back any variables at all, just a XML file from a SQL query.
the function i'm using is here:
public function itemGet():void
{
var textRequest:URLRequest = new URLRequest("pull_data_item.php")
var textLoader:URLLoader = new URLLoader();
var variables:URLVariables = new URLVariables();
variables.itemSelect = 1;
textRequest.data = variables;
textRequest.method = URLRequestMethod.POST;
textLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
textLoader.load(textRequest);
}
any ideas how i can tell Flex or the PHP file to shut up?
THanks!
I am using a URLLoader to send a request and 1 variable to a PHP file.
I am getting this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
But the PHP is file is not giving back any variables at all, just a XML file from a SQL query.
the function i'm using is here:
public function itemGet():void
{
var textRequest:URLRequest = new URLRequest("pull_data_item.php")
var textLoader:URLLoader = new URLLoader();
var variables:URLVariables = new URLVariables();
variables.itemSelect = 1;
textRequest.data = variables;
textRequest.method = URLRequestMethod.POST;
textLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
textLoader.load(textRequest);
}
any ideas how i can tell Flex or the PHP file to shut up?
THanks!