|
-
anyone else hear that?
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!!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
-
anyone else hear that?
Ah, got it figured out...problem on the variable names...
Thanks!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
-
I think it looks fine. BTW why do you need to store the sendAndLoad in "results1"?
-
anyone else hear that?
was just doing that for testing...all set now...
Thanks!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|