Radio buttons components value to PHP

Hiho everybody,

I use a flash form to send an e-mail to a specific address. The thing is, I would like to have the value of the chosen radio buttons given to the php file. I mean, anything works, but just not the radio button stuff.

The only thing I get in my e-mail (for “auswahl”) is this: [object Object]

So, I have seven radio buttons placed with the instance names cb1, cb2, …

My mainframe code:

// Call-Backs for Change-Handler 
funktion_1 = function () { 
    var state = cb1.getState(); 
    if (state) { 
        _root.php_var = 'Allgemein' 
    } 
}; 
funktion_2 = function () { 
    var state = cb2.getState(); 
    if (state) { 
        _root.php_var = 'Business' 
    } 
};
funktion_3 = function () { 
    var state = cb3.getState(); 
    if (state) { 
        _root.php_var = 'Beau' 
    } 
};
funktion_4 = function () { 
    var state = cb4.getState(); 
    if (state) { 
        _root.php_var = 'Glam' 
    } 
};
funktion_5 = function () { 
    var state = cb5.getState(); 
    if (state) { 
        _root.php_var = 'Port' 
    } 
};
funktion_6 = function () { 
    var state = cb6.getState(); 
    if (state) { 
        _root.php_var = 'Sed' 
    } 
};
funktion_7 = function () { 
    var state = cb7.getState(); 
    if (state) { 
        _root.php_var = 'Repo' 
    } 
};
cb1.setChangeHandler('funktion_1'); 
cb2.setChangeHandler('funktion_2');
cb3.setChangeHandler('funktion_3'); 
cb4.setChangeHandler('funktion_4');
cb5.setChangeHandler('funktion_5');
cb6.setChangeHandler('funktion_6');
cb7.setChangeHandler('funktion_7');
submitButton.onRelease = function() { 
    zu_sendende_variablen = new LoadVars(); 
    zu_sendende_variablen.auswahl = _root.php_var; 
    zu_sendende_variablen.send('kontakt.php', _self, 'POST'); 
}; 

My submitButton:

on (release) {
 if (signal != 2 && MailFrom .indexOf("@") !=-1 && MailFrom .indexOf(".") !=-1 && Subject !="" && Body !="") {
  signal=2;
  loadVariablesNum("kontakt.php", 0, "POST");
 }
 if (Body == "") {
  mc.ausgabe = ".: Nachricht fehlt :.";
 }
 if (Subject == "") {
  mc.ausgabe = ".: Betreff fehlt :.";
 }
 if (Phone == "") {
  mc.ausgabe = ".: Telefonnummer fehlt :.";
 }
 if (auswahl == "") {
  mc.ausgabe = ".: Interessenauswahl fehlt :.";
 }
 if ( MailFrom .indexOf("@") ==-1 ||  MailFrom .indexOf(".") ==-1) {
  mc.ausgabe = ".: E-Mail-Adresse fehlt :.";
 }
}

My php file:

<?php
$MailTo="bla@xxx.com";
$nowDay=date("m.d.Y");
$nowClock=date("H:i:s");
$FormContent="
Erhalten am $nowDay um $nowClock:

----------------------------------------------------------

Vorname: $_POST[firstname]

Nachname: $_POST[lastname]

Telefon: $_POST[Phone]

E-Mail: $_POST[MailFrom]

----------------------------------------------------------

Interesse: $_POST[auswahl]

----------------------------------------------------------

Betreff: $_POST[Subject]

----------------------------------------------------------

Nachricht: $_POST[Body]

";
mail($MailTo, $_POST[Subject]." (von ".$_POST[firstname]." ".$_POST[lastname].")", $FormContent, "von ".$_POST[MailFrom]);
       $filename = "antwort.txt";
       $fd = fopen( $filename, "r" );
       $contents = fread( $fd, filesize( $filename ) );
       fclose( $fd );
       mail( $_POST[MailFrom], "Vielen Dank für Ihre Nachricht", $contents, "Ein Hinweis von www.xxx.com" );
$signal=1;
echo "signal=$signal";
?>

So, once again, everything else is packed into the e-mail but that ■■■■ radio button item just does not appear/work. My $_Post[auswahl] stays empty or brings me a stupid [object Object].

Does anyone know what to do to have it solved?

… and one thing in advance: I am an absolute newbie to php or as. I just do not know ANYTHING. So, if you are willing to help me, what I would REALLY appreciate, be patient and do not give me simple bits of information, because I will not bring it to work on my own. I have already used up four days just to get finally the script running like it is … and this is a stupid simple mail form. :frowning:

Nice greetings to you all.