Hi guys.
I wonder this has been discussed many times & having gone through many such answers I still seem not to get a reply to my problem.
So i have a program in flash, which generates a button which when clicked gets a set of variables from a php file called testdata.php.
Now this tesfile.php when run standalone generates correct values of variables & displays them.
However when i change it to be able to send it to a flash file ( make changes in
echo “&db_w_var1=$db_val1”; ) like this. the values I receive in flash are odd. in fact i get this $db_val1"; exactly this for the first variable. I get this string instead of receiving an integer value 4 or maybe even a string value ‘4’.
So can anyone looking at this tell me what could be going wrong. The following is **a part of **code which calls the php file to get the value of variables:
var w_WS; // Database returned Written Sums var w_WT; // Database returned Written Time
var w_ST; // Database returned Sum Type ( written or visual or oral)
var w_end;
lv1.dataType = "written";
lv1.w_sums_correct= w_sums_correct;
lv1.w_time = w_time;
/////////// for localhost ///////////////////
lv1.sendAndLoad(path+"testdata.php",lvIn1,"POST"); // sends data values of lv1 variabless
// and GETS lvIn1 value
/////////// for display on a webpage (_blank) ///////////////////
// lv1.send(path + "sessdata1.php", "_blank", "POST"); // or GET
lvIn1.onLoad = function(success){
if(success){
w_WS = lvIn1.db_w_var1;
w_WT = lvIn1.db_w_var2;
w_ST = lvIn1.db_w_var3;
w_end = lvIn1.db_w_end;
written_data = " WT = "+w_WT; // " WS = "+w_WS + " Type = "+w_ST + "End = "+w_end;
} // end success
Thanks to all for any help. This has me losing my brains. please help the gurus.