-
sendAndLoad
I'm using sendAndLoad to submit some data to an asp page (which works standalone when I submit from another form page), but when I use the flash form, nothing seems to be getting passed. Does the following code look right, or am I missing something??
Code:
var my_lv:LoadVars = new LoadVars();
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
input_1.text = "success!";
} else {
input_1.text = "Error connecting to server.";
}
};
my_lv.MM_insert = "form1";
my_lv.user_PostDate = "09/16/07";
my_lv.user_ID = "3054";
my_lv.user_FName = "testFN";
my_lv.user_LName = "testLN";
my_lv.user_CNum = "1";
my_lv.user_CData = "AAB";
my_lv.user_CData2 = "test CData 2";
my_lv.user_CData3 = "test CData 3";
my_lv.user_CData4 = "";
my_lv.user_CData5 = "";
results1 = my_lv.sendAndLoad("http://www.testingaddress.com/postdata.asp", result_lv, "POST");
Thanks!!
-
Ah, got it figured out...problem on the variable names...
Thanks!
-
I think it looks fine. BTW why do you need to store the sendAndLoad in "results1"?
-
was just doing that for testing...all set now...
Thanks!