I have two forms, one is sending through the checkboxes ok, the other is sending through empty values comma seperated. I will place the code for each and the email code below.
Form 1 (This one is working fine)
This is the email code for form 1
This is form 2 (which is not sending the procedures values through
This is the email code
Form 1 (This one is working fine)
<div id="phase1">
<table width="100%" border="0">
<tr>
<td colspan="4" valign="top"><h3>Find your perfect Cosmetic Surgery Clinic</h3>
<p>Select the procedures you are interested in</p></td>
<td colspan="2" align="right" valign="middle"> </td>
</tr>
<tr>
<td colspan="4" valign="top"><strong>Surgical procedures</strong></td>
<td colspan="2" align="right" valign="top"><div align="right"><strong>Non Surgical Procedures</strong></div></td>
</tr>
<tr>
<td width="19%" valign="top">Liposuction</td>
<td width="4%" valign="top"><input type="checkbox" name="procedures[]" value="Fat Removal / Liposuction" id="Liposuction"></td>
<td width="18%" valign="top">Eyelid Surgery</td>
<td width="13%" valign="top"><input type="checkbox" name="procedures[]" value="Eye Bag Removal" id="EyeLidSurgery"></td>
<td width="34%" align="right" valign="top">Hyaluronic Acid Treatment</td>
<td width="12%" align="right" valign="top">
<input type="checkbox" name="procedures[]" value="Hyaluronic Acid Treatment" id="Hyaluronic">
</td>
</tr>
<tr>
<td valign="top">Breast uplift</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Uplift" id="Breastuplift"></td>
<td valign="top">Tummy Tuck</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Tummy Tuck" id="Tummy Tuck"></td>
<td width="34%" align="right" valign="top">Laser Hair Removal</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Laser Hair Removal" id="LaserHair"></td>
</tr>
<tr>
<td valign="top">Breast Enlargement</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Enlargement" id="BreastEnlargement"></td>
<td valign="top">Ear Surgery</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Ear Reshaping" id="Ear Surgery"></td>
<td width="34%" align="right" valign="top">Lip Enhancements</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Lip Enhancements" id="LipEnhancements"></td>
</tr>
<tr>
<td valign="top">Breast Reduction</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Reduction" id="BreastReduction"></td>
<td valign="top">Face/Neck Lift</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Face Lifts" id="FaceNeckLift"></td>
<td width="34%" align="right" valign="top">Chemical Peels</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Chemical Peels" id="ChemicalPeels"></td>
</tr>
<tr>
<td valign="top">Nose Surgery</td>
<td valign="top"><input type="checkbox" name="procedures[]" value"Nose Reshaping" id="Nosesurgery"></td>
<td valign="top">Male Procedures</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Male Chest Reduction" id="MaleProcedures"></td>
<td width="34%" align="right" valign="top">Leg Vein Treatments</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Leg Vein Treatments" id="LegVeinTreatments"></td>
</tr>
<tr>
<td valign="top">Other (please specify)</td>
<td colspan="3" valign="top"><input type="text" name="Other" id="Other"></td>
<td align="right" valign="top">Other (please specify)</td>
<td align="right" valign="top"><input type="text" name="nonsurgical" id="nonsurgical"></td>
</tr>
<tr>
<td colspan="6" valign="top"><div align="center">
<input name="Find the Perfect Clinic" type="button" onClick="showHidePhase1()" value="Find the Perfect Clinic">
</div></td>
</tr>
</table>
<p> </p>
</div>
<div id="phase2">
<h4>FINAL STEP - Tell us your details</h4>
<table width="100%" border="0">
<tr>
<td width="56%" colspan="2" valign="top">
<p><label for="name">First Name *</label>
<input name="firstname" type="text" class="required" id="firstname" size="25" />
</p>
<p><label for="name">Surname *</label>
<input name="lastname" type="text" class="required" id="lastname" size="25" />
</p>
<p><label for="Postcode">Postcode *</label>
<input name="Postcode" type="text" class="required" id="Postcode" size="25" />
</p>
<p><label for="email">Email *</label>
<input name="email" type="text" class="required email" id="email" size="25" />
</p>
<p><label for="telephone">Telephone *</label>
<input name="telephone" type="text" class="required" id="telephone" size="25" />
</p>
<p> <label for="mobile">Mobile</label>
<input name="mobile" type="text" class="required" id="mobile" size="25" />
</p>
<p>
<label for="age">I'm over 18yrs *</label>
<input name="age" type="checkbox" id="age" title="You must be over 18 years old for us to be able to match you up with any Cosmetic Surgery Clinics" value="Over18" />
</p>
</td>
<td width="44%" rowspan="2" align="right" valign="top"><img src="images/stories/lipo/lipo1.png" width="300" height="200" alt="Liposuction Procedures"></td>
</tr>
<tr>
<td colspan="2" valign="bottom">* Required Fields</td>
</tr>
<tr>
<td valign="top" colspan="3"><div align="center">
<input name="Compare Prices Now3" type="submit" id="Compare Prices Now3" onClick="MM_validateForm('name','','R','Postcode','','R','email','','RisEmail','telephone','','R');return document.MM_returnValue" value="Compare Prices Now">
</div></td>
</tr>
</table>
<p> </p>
</div>
<br class="clr" />
This is the email code for form 1
<span style="text-decoration: underline;"><strong>Cosmetic Surgery Enquiry from Compare Cosmetic Surgery UK</strong></span><br /><br /><strong>Customer Details</strong><br /><br />First Name: {firstname}<br />Last Name: {lastname}<br />DOB: {DOB}<br />Address: {address}<br />Postcode: {Postcode}<br />Email: {email}<br />Telephone: {telephone}<br />Mobile: {mobile}<br />Procedure: {procedures} {Other} {nonsurgical}<br /><br />
This is form 2 (which is not sending the procedures values through
<div id="phase1">
<table width="100%" border="0">
<tr>
<td colspan="4" valign="top"><h3>Find your perfect Cosmetic Surgery Clinic</h3>
<p>Select the procedures you are interested in</p></td>
<td colspan="2" align="right" valign="middle"> </td>
</tr>
<tr>
<td colspan="4" valign="top"><strong>Surgical procedures</strong></td>
<td colspan="2" align="right" valign="top"><div align="right"><strong>Non Surgical Procedures</strong></div></td>
</tr>
<tr>
<td width="19%" valign="top">Liposuction</td>
<td width="4%" valign="top"><input type="checkbox" name="procedures[]" value="Fat Removal / Liposuction" id="Liposuction"></td>
<td width="18%" valign="top">Eyelid Surgery</td>
<td width="13%" valign="top"><input type="checkbox" name="procedures[]" value="Eye Bag Removal" id="EyeLidSurgery"></td>
<td width="34%" align="right" valign="top">Hyaluronic Acid Treatment</td>
<td width="12%" align="right" valign="top">
<input type="checkbox" name="procedures[]" value="Hyaluronic Acid Treatment" id="Hyaluronic">
</td>
</tr>
<tr>
<td valign="top">Breast uplift</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Uplift" id="Breastuplift"></td>
<td valign="top">Tummy Tuck</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Tummy Tuck" id="Tummy Tuck"></td>
<td width="34%" align="right" valign="top">Laser Hair Removal</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Laser Hair Removal" id="LaserHair"></td>
</tr>
<tr>
<td valign="top">Breast Enlargement</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Enlargement" id="BreastEnlargement"></td>
<td valign="top">Ear Surgery</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Ear Reshaping" id="Ear Surgery"></td>
<td width="34%" align="right" valign="top">Lip Enhancements</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Lip Enhancements" id="LipEnhancements"></td>
</tr>
<tr>
<td valign="top">Breast Reduction</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Breast Reduction" id="BreastReduction"></td>
<td valign="top">Face/Neck Lift</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Face Lifts" id="FaceNeckLift"></td>
<td width="34%" align="right" valign="top">Chemical Peels</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Chemical Peels" id="ChemicalPeels"></td>
</tr>
<tr>
<td valign="top">Nose Surgery</td>
<td valign="top"><input type="checkbox" name="procedures[]" value"Nose Reshaping" id="Nosesurgery"></td>
<td valign="top">Male Procedures</td>
<td valign="top"><input type="checkbox" name="procedures[]" value="Male Chest Reduction" id="MaleProcedures"></td>
<td width="34%" align="right" valign="top">Leg Vein Treatments</td>
<td width="12%" align="right" valign="top"><input type="checkbox" name="procedures[]" value="Leg Vein Treatments" id="LegVeinTreatments"></td>
</tr>
<tr>
<td valign="top">Other (please specify)</td>
<td colspan="3" valign="top"><input type="text" name="Other" id="Other"></td>
<td align="right" valign="top">Other (please specify)</td>
<td align="right" valign="top"><input type="text" name="nonsurgical" id="nonsurgical"></td>
</tr>
<tr>
<td colspan="6" valign="top"><div align="center">
<input name="Find the Perfect Clinic" type="button" onClick="showHidePhase1()" value="Find the Perfect Clinic">
</div></td>
</tr>
</table>
<p> </p>
</div>
<div id="phase2">
<h4>FINAL STEP - Tell us your details</h4>
<table width="100%" border="0">
<tr>
<td width="28%" valign="top">
<p>
<label for="name">First Name *</label>
<input name="firstname" type="text" class="required" id="firstname" size="15" />
</p>
</td>
<td width="28%" valign="top"><label for="name2">Surname *</label>
<input name="lastname" type="text" class="required" id="lastname" size="15" /></td>
<td width="44%" rowspan="3" align="right" valign="top"><p><img src="images/stories/lipo/lipo1.png" width="300" height="200" alt="Liposuction Procedures"></p>
<p align="left">
<input name="Compare Prices Now3" type="submit" id="Compare Prices Now3" onClick="MM_validateForm('firstname','','R','lastname','','R','postcode','','R','telephone','','R','address','','R');return document.MM_returnValue" value="Find the Perfect Clinic">
</p></td>
</tr>
<tr valign="top">
<td colspan="2"><p>
<label for="DOB4">D.O.B. *</label>
<input name="DOB" type="text" class="required" id="DOB4" value="dd/mm/yyyy" size="15" />
</p>
<p>
<label for="address">Address</label>
<textarea name="address" class="required" id="address" cols="40" rows="1"></textarea>
</p>
<p>
<label for="postcode">Postcode *</label>
<input name="Postcode" type="text" class="required email" id="Postcode" size="15" />
</p>
<p>
<label for="email4">Email *</label>
<input name="email" type="text" class="required email" id="email4" size="25" />
</p></td>
</tr>
<tr valign="top">
<td>
<label for="telephone">Telephone *</label>
<input name="telephone" type="text" class="required" id="telephone" size="15" />
</td>
<td><label for="mobile3">Mobile</label>
<input name="mobile" type="text" class="required" id="mobile3" size="15" /></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top">* Required Fields</td>
</tr>
</table>
<p> </p>
</div>
<br class="clr" />
This is the email code
<p><span style="text-decoration: underline;"><strong>Cosmetic Surgery Enquiry from Compare Cosmetic Surgery UK</strong></span><br /><br /><strong>Customer Details</strong><br /><br />First Name: {firstname}<br />Last Name: {lastname}<br />DOB: {DOB}<br />Address: {address}<br />Postcode: {Postcode}<br />Email: {email}<br />Telephone: {telephone}<br />Mobile: {mobile}<br />Procedure: {procedures} {Other} {nonsurgical}</p>