I know there’s been tons of questions threads about this, but I still can’t figure out how to send the selected the item selected in the combobox component as a variable to my PHP script. Please help…
My combobox instance is named cSubject
stop();
var form_lv:LoadVars = new LoadVars();
var dummy_lv:LoadVars = new LoadVars();
mcButton.onRelease = function():Void {
form_lv.name = _root.cName.text;
form_lv.initials = _root.cInitials.text;
form_lv.email = _root.cEmail.text;
form_lv.subject = _root.cSubject.selectedItem;
form_lv.message = _root.cessage.text;
form_lv.sendAndLoad("t_email.php", dummy_lv, "POST");
nextFrame();
}
Can anyone tell me what I am doing wrong? I thought it should work like this. Thanks in advance!