We help IT Professionals succeed at work.

Pass radio button values to mailto body?

Ahelbling
Ahelbling asked
on
892 Views
Last Modified: 2012-02-09
Hello, can someone help me to figure out how to add the value of a set of radio buttons in a form to a mailto button onclick?  It works if I try a textbox value in the same form, but passes "UNDEFINED" when I try to pass the radio button value.

<form class="formular" id="DonateForm" name="DonateForm" method="post" action="GCP21Reg.asp">
	<table style="width: 100%;">
          <tr>
			<td class="FormSectionRows" colspan="2">
            <input type="radio" id="S1" name="AbsCat" value="S1" />S1 Biodiversity and Genetic Resources<br/>
            <input type="radio" id="S2" name="AbsCat" value="S2" />S2 Climate and Social Changes Impacting Cassava<br/>
            <input type="radio" id="S3" name="AbsCat" value="S3" />S3 Genomics and Gene Discovery Platforms<br/> 
            <input type="radio" id="S4" name="AbsCat" value="S4" />S4 Agronomy (Cassava Field Production)<br/>
            <input type="radio" id="S5" name="AbsCat" value="S5" />S5 CBSD and CMD and CBB<br/>
            <input type="radio" id="S6" name="AbsCat" value="S6" />S6 Enabling Transgenic and In vitro Technologies (includes haploids)<br/>
            <input type="radio" id="S7" name="AbsCat" value="S7" />S7 Physiology and Abiotic stress (includes PPD)<br/>
            <input type="radio" id="S8" name="AbsCat" value="S8" />S8 Modern Breeding (includes MAS, heterosis, transgenics)<br/>
            <input type="radio" id="S9" name="AbsCat" value="S9" />S9 Field Breeding<br/>
            <input type="radio" id="S10" name="AbsCat" value="S10" />S10 Metabolic Engineering (includes starch, biofuels, nutritional enhancement)<br/>
            <input type="radio" id="S11" name="AbsCat" value="S11" />S11 Cassava Delivery Chain<br/>
            <input type="radio" id="S12" name="AbsCat" value="S12" />S12 Cassava Value Chain<br/>
            <input type="radio" id="S13" name="AbsCat" value="S13" />S13 Cassava Genomics Workshop<br/>
            </td>
		</tr>
<tr>
			<td class="FormSectionRows" colspan="2" ><input id="Button1" type="button" value="Submit Abstract" onclick="parent.location='mailto:pcosgrove@danforthcenter.org?subject=GCP21 Abstract Submission&body='+DonateForm.AbsCat.value+''" /></td>
		</tr>
</table>
</form>

Open in new window



TIA,
Andrew
Comment
Watch Question

Web Ninja at large
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.