Flash Form

Hi all,

So I’ve searched and searched the net for help with this but i just couldn’t find anything. I’ve built a form with php…no problem…then I’ve been asked to add check buttons, comboBox and I’m in a muddle.

The form has a reset button also that I’d like to work for the check buttons, comboBox.

Here is my code that I’ve attached to my send button.

on (release) {
    //My variables
    sender_mail = this._parent.Semail.text;
    sender_name = this._parent.Sname.text;
    sender_message = this._parent.Smessage.text;
    sender_checkbox = this._parent.Scheckbox.selected;
    sender_checkbox1 = this._parent.Scheckbox1.selected;
    
    //Reset the text fields
    this._parent.Sname.text = "";
    this._parent.Semail.text = "";
    this._parent.Scheckbox.setValue(false);
    this._parent.Scheckbox1.setValue(false);
    
    //Alert of status
    this._parent.Smessage.text = "Your message is being sent.";
    //Disable the send button
    this.enabled = false;
    //Variables sent via POST method
    //NB Place the URL of the PHP on your server
    loadVariables("put your website here/sendmail.php", this, "POST");
    //Listen for a response form the server
    this.onData = function() {
        //Enable the button
        this.enabled = true;
        //Smessage
        for (var a in this) {
            trace([a, this[a]]);
        }
        //Message sent
        if (this.output == 'sent') {
            this._parent.Sname.text = "";
            this._parent.Semail.text = "";
            this._parent.Scheckbox.selected = "";
            this._parent.Scheckbox1.selected = "";
            this._parent.Smessage.text = "Your message has been succesfully sent.
Thank you for your Message.";
            this.enabled = false;
        } else {
            //Message Error
            this._parent.Sname.text = "";
            this._parent.Semail.text = "";
            this._parent.Scheckbox.selected = "";
            this._parent.Scheckbox1.selected = "";
            this._parent.Smessage.text = "Attention, an error occurred while processing your message. Please try again later.";
        }
    };
}

I’ve tried to add the checkbox first into the code…labeled Scheckbox and Scheckbox1 and set there values to false but that doesn’t work.

Really appreciate some help here.

Thanks.