lelales
05-17-2006, 08:52 PM
I have created a combox in a form that is processed by a php file and mailed to me. The problem is that the combobox always come up with a value of "undefined".
I have given my combox an instance name in the component parameter field. This istance name also shows up in the property field as well.
I can't figure it out.
here's my file: http://www.caillouette.com/nola/component_form.zip
here's my code: stop();
var LV_out:LoadVars = new LoadVars();
var LV_in:LoadVars = new LoadVars();
LV_in.onLoad = function(success) {
if (success) {
gotoAndPlay("Display");
} else {
trace ("Error loading data into flash");
gotoAndPlay("Error");
}
}
//----------
submit_mc.onRelease = function() {
var custname:String= Fcustname.text;
LV_out.billing = Fbilling.selectedData;
LV_out.apptype = Fapptype.selectedData;
LV_out.loantype = Floantype.selectedData;
var inputValue:String = input_txt.text;
trace(LV_out.billing);
trace(LV_out.apptype);
trace(LV_out.loantype);
trace(inputValue);
LV_out.sendAndLoad("register4.php", LV_in, "GET");
gotoAndStop("Loading");
mySO.data.voted = "yes";
mySO.flush();
};
//----------
I don't know if "selectedData" is right for the combo box, but it works for the radio buttons.
thanks
__________________
Maggot Brain
I have given my combox an instance name in the component parameter field. This istance name also shows up in the property field as well.
I can't figure it out.
here's my file: http://www.caillouette.com/nola/component_form.zip
here's my code: stop();
var LV_out:LoadVars = new LoadVars();
var LV_in:LoadVars = new LoadVars();
LV_in.onLoad = function(success) {
if (success) {
gotoAndPlay("Display");
} else {
trace ("Error loading data into flash");
gotoAndPlay("Error");
}
}
//----------
submit_mc.onRelease = function() {
var custname:String= Fcustname.text;
LV_out.billing = Fbilling.selectedData;
LV_out.apptype = Fapptype.selectedData;
LV_out.loantype = Floantype.selectedData;
var inputValue:String = input_txt.text;
trace(LV_out.billing);
trace(LV_out.apptype);
trace(LV_out.loantype);
trace(inputValue);
LV_out.sendAndLoad("register4.php", LV_in, "GET");
gotoAndStop("Loading");
mySO.data.voted = "yes";
mySO.flush();
};
//----------
I don't know if "selectedData" is right for the combo box, but it works for the radio buttons.
thanks
__________________
Maggot Brain