Getting values from a radio button into a LoadVars object

Hi,
I can’t see the anwser to this question anywhere else on the forum so I’m hoping someone will be able to help.

I have a survey in Flash with 5 questions. Three questions have input text boxes for the user’s answers, and two have sets of radio button options. I want to send the answers to a PHP script and insert them into a MySQL database.

The text boxes work fine, but the values for the radio box responses show up as “undefined” in MySQL. I’d like to know how to pass the values from the two radio button groups into the LoadVars object. The code I have is:


submit.onRelease = function(){
    var questionVar:LoadVars = new LoadVars();
    questionVar.question1 = question1.text;
    questionVar.question2 = radioGroup1.getvalue();
    questionVar.question3 = question3.text;
    questionVar.question4 = radioGroup2.getvalue();
    questionVar.question5 = question5.text;
    questionVar.sendAndLoad("http://www.theresmoretolifethanshoes.com/insert.php", questionVar, "POST");
    questionVar.onLoad = function(){
        gotoAndPlay(2);
    }
    }

    

The radio buttons are set up like this:

Any pointers as to where I’m going wrong would be appreciated.