Radio buttons and FormMail

Author Message
Jim Johnson

Posted: 4/28/2014
Quote message 

I am trying to create a form with radio buttons and check boxes, to be processed by FormMail. Everything seems to be set up properly but FormMail is unable to extract the values from the radio buttons and check boxes. I dropped in some sample code that uses unstyled radio buttons, and these are read properly. Code is below. Does anyone have a suggestion?

<p><form action="" method="post">
<input type="hidden" name="recipients" value="">
<input type="hidden" name="subject" value="Appointment Request">
<input type="hidden" name="redirect" value="../contact/success.html">
<p><input type="text" placeholder="Your Name" name="realname">&nbsp;&nbsp;<input type="email" placeholder="Email" name="email">&nbsp;&nbsp;<input type="text" placeholder="Phone" name="phone"><br></p><p><input type="text" placeholder="Pet's Name" name="petsname">&nbsp; &nbsp;<label class="art-radiobutton"><input type="radio" name="species" value="Dog">&nbsp;Dog&nbsp;&nbsp;&nbsp;</label>&nbsp;<label class="art-radiobutton art-checked"><input type="radio" name="species" value="Cat" checked="checked">&nbsp;Cat&nbsp;&nbsp;</label><label class="art-checkbox art-checked"><input type="checkbox" name="new_patient" value="New" patient="" checked="checked">&nbsp;&nbsp;Is this a new patient?</label></p><p><textarea placeholder="Comments" name="comments" style="width:80%" rows="5"></textarea></p>
<td><p>May we contact you?</p>
<label>Yes <input type="radio" name="contact" value="Y" checked="checked" /></label>
<label>No <input type="radio" name="contact" value="N" /></label>

<input type="submit" value="Submit" class="art-button" style="zoom: 1;"></form></p>