Zurück   Flashforum > Flash und Server > PHP und MySQL

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 30-03-2011, 21:35   #1 (permalink)
Neuer User
 
Registriert seit: Oct 2003
Beiträge: 97
ComboBox bzw. Checkbox an PHP übergeben

Hallo Leute,

ich würde gerne die Auswahl einer ComboBox bzw. einer Checkbox an PHP übergeben - leider bekomme ich ein "undefined" wenn ich mir die Variable von PHP zurückgeben lasse.

Beim Textfeld funktioniert es jedoch...

Code:
stop();
//=================================
// INIT
//=================================
path = "http://www.badenerhochzeitstage.com/register/php/"; //declare path to php files
lvOut = new LoadVars(); //create lv object
lvIn = new LoadVars(); //create lv object
lvIn.onLoad = function (success) {
 if(success){
 //PHP variable value to textbox
trace ("Ergebnis DropDown: " + lvIn.returnDropDown);
trace ("Ergebnis CheckBox1: " + lvIn.returnCheckBox);
trace ("Ergebnis E-Mail: " + lvIn.returnEmail);
trace ("Ergebnis CheckBox2: " + lvIn.returnAgbs);
 }else{
 //...or notify of failure
 output.text = "fail";
 }
}
//=================================
// BTN
//=================================
myBtn.onRelease = function(){
 //assign user-input value to lv property called years
 lvOut.drop = dropDown.ComboBox.selectedIndex;
 lvOut.box = checkBox.CheckBox.selectedIndex;
 lvOut.email = emailLabel.text;
 lvOut.agb = agbBox.CheckBox.selectedIndex;
 //send to a blank window...
 //lvOut.send(path + "dogyears.php","_blank");
 //get results returned to lvIn
 lvOut.sendAndLoad(path + "register.php", lvIn, "POST");
 this.gotoAndStop(3);
};
Vielen Dank für Eure Hilfe!

lg,

Stefan
Bosstone ist offline   Mit Zitat antworten
Alt 30-03-2011, 22:02   #2 (permalink)
Neuer User
 
Registriert seit: Oct 2003
Beiträge: 97
Hi,

Code:
 lvOut.drop = dropDown.ComboBox.getSelectedItem().Label;
gibt auch ein "undefined" aus...
Bosstone ist offline   Mit Zitat antworten
Alt 01-04-2011, 21:18   #3 (permalink)
Neuer User
 
Registriert seit: Oct 2003
Beiträge: 97
Code:
dropDown.selectedItem.label
Bosstone ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
checkbox, combobox, mysql, php

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Formular - Problem mit Checkbox und Combobox tomlebon Komponenten und SmartClips 5 19-04-2009 16:11
[Flash CS3] Checkbox/Combobox deaktivieren Dublay Komponenten und SmartClips 2 21-01-2009 14:45
checkbox in Combobox neo14 Komponenten und SmartClips 1 07-03-2008 09:32
CheckBox in ComboBox patte04 Komponenten und SmartClips 3 25-02-2006 17:29
Combobox und Checkbox Problem hela66 Komponenten und SmartClips 3 11-03-2005 22:45


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:08 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele