retrieve Data thru Php failed?
Hi, I want to retrieve a data from mysql database I have a field 'fname' ( first name ), and I want an input box 'fnameS' in timeline to show it right from the beginning.
timeline script like this:
stop();
processCreate("retrieveData");
in my class document I have function like this:
public function processCreate(showCondition):void {
trace ("get it"); //tested 'get it' shows in output
var urlVars:URLVariables = new URLVariables();
var urlFileRequest:URLRequest = new URLRequest("php/controlpanel.php");
urlFileRequest.method = URLRequestMethod.POST;
urlFileRequest.data = urlVars;
var php2Loader:URLLoader = new URLLoader();
php2Loader.dataFormat = URLLoaderDataFormat.VARIABLES;
if (showCondition=="retrieveData"){
php2Loader.addEventListener(Event.COMPLETE, showResultS2); }
urlVars.systemCall = showCondition;
urlVars.email = email.text;
urlVars.password = password.text;
urlVars.fname = fname.text;
urlVars.lname = lname.text;
php2Loader.load(urlFileRequest); }
