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)
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:
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:
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…