PDA

View Full Version : sending and receiving variables with flash and php



wildliferescuer
February 18th, 2011, 12:07 AM
Hi there
I am trying to use flash to retrieve variables from a mysql database using php.
the Action Script I am using is

function showContent(){

title_txt.text = this.title_txt;

}

var c = new LoadVars();
c.onLoad = showContent;

button.onRelease = function(){
c.sendAndLoad("ShowFlash.php",c,"POST");
}considering the php is returning all the variables as a string like "title_text=a title&time_txt=12:45 pm&date_txt=some date" what would I be doing wrong?