# Capturing Radio Button Result

**URL:** <https://forum.kirupa.com/t/capturing-radio-button-result/24426>\
**Category:** Uncategorized\
**Created:** [June 30, 2003, 6:55pm UTC](https://forum.kirupa.com/t/capturing-radio-button-result/24426 "2003-06-30T18:55:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scar](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Scar](https://forum.kirupa.com/u/Scar)\
**Post date:** [June 30, 2003, 6:55pm UTC](https://forum.kirupa.com/t/capturing-radio-button-result/24426/1 "2003-06-30T18:55:14Z")

</div>

I have a form that I am submitting to a cgi script for processing. For some reason, I am not able to get the selections in Radio button groups or in checkboxes…the syntax where I initialize the values is below( I have many more radio button groups and checkboxes…took it out to simplify)

```auto

formData = new LoadVars();
formData.name = "";
formData.title = "";
formData.email = "";
formData.company = "";
formData.phone = "";
formData.address = "";
formData.emailX5 = emailX5.getValue(); //check box
formData.oracleGroup = oracleGroup.getData(); //radio button group
formData.destination = "MercurySurvey";

replyData = new LoadVars();
replyData.onLoad = myOnLoad;

```

and here is where I run the function goPostal from the submit button:

```auto

function goPostal() {
	errBox.setIcon("info");
	errBox.setTitle("Sending Survey");
	errBox.setMessage("Your Survey Is Being Submitted");
	errBox._visible = true;
	errBox.setEnabled(false);
	formData.sendAndLoad("http://www.mercury.com/cgi-bin/mailForm.cgi", replyData, "post");
}

```

when I do this I get an email message with all of the text values, i.e. name, phone, company, email – but none of the other values come through. I also added the following trace statements as the first lines of the goPostal function:

```auto

	trace("oracleGroup: " + formData.oracleGroup.getData());
	trace("name: " + formData.name);
	trace("exchangeCheckbox: " + formData.emailX5.getData());

```

and the only one that has a value is name.

Please help…  
thanks…
