Question
Populating dynamic text field with form data from previous frame
I've got a dynamic text field (name) and I'd like to populate
it with the values from two fields in a form from a previous frame.
Does anyone know how to transport user-input values from one frame
to another frame?
Here's the code I'm using to capture the user-entered data:
var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
result_ta.text = "Thank you for completing this training module.";
} else {
result_ta.text = "Error connecting to server.";
}
};
var send_lv:LoadVars = new LoadVars();
send_lv.fname = fname.text;
send_lv.lname = lname.text;
send_lv.email = email.text;
send_lv.sendAndLoad(" http://distance.uaf.edu/ferpa/process.php", result_lv, "POST");
gotoAndStop("certificate");
};
submit_button.addEventListener("click", submitListener);
Is there any way to capture the values from the fields 'fname' and 'lname' (which are instance names not variable names)? Note: I had to make them instance names in order for the code to be accessible to LoadVars() and hence to my php processing script.
thanks,
sage
Here's the code I'm using to capture the user-entered data:
var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
result_ta.text = "Thank you for completing this training module.";
} else {
result_ta.text = "Error connecting to server.";
}
};
var send_lv:LoadVars = new LoadVars();
send_lv.fname = fname.text;
send_lv.lname = lname.text;
send_lv.email = email.text;
send_lv.sendAndLoad(" http://distance.uaf.edu/ferpa/process.php", result_lv, "POST");
gotoAndStop("certificate");
};
submit_button.addEventListener("click", submitListener);
Is there any way to capture the values from the fields 'fname' and 'lname' (which are instance names not variable names)? Note: I had to make them instance names in order for the code to be accessible to LoadVars() and hence to my php processing script.
thanks,
sage