Hello - I have a form that is running a PHP script and don't want it to send information to the email for fields unless they have been completed
so, ONLY if the text filled has an input do I want it to show and for it to show the option value for it too
e.g. Only include on the email when <input type="text" name="sailing1" /> has a value and include the related option value <select name="sailingEx1">
<option value="Not Playing!">Please select</option>
<option value="Experienced">Expert</option>
<option value="Some Experience">Not too
bad</option>
This is the HTML code
<table width="500" border="0" cellspacing="1" cellpadding="1">
<!--DWLayoutTable-->
<tr>
<td width="104" rowspan="2" align="center" valign="top">
<div align="left"><br>
</div>
<p><br />
</p></td>
<td width="4" height="89"> </td>
<td width="190" valign="top"> <p align="center">
<input type="text" name="sailing1" />
<br>
<input type="text" name="sailing2" />
<br>
<input type="text" name="sailing3" />
<br>
<input type="text" name="sailing4" />
<br>
</p></td>
<td width="38"> </td>
<td width="158" rowspan="3" valign="top"> <p align="center">
<select name="sailingEx1">
<option value="Not Playing!">Please select</option>
<option value="Experienced">Expert</option>
<option value="Some Experience">Not too
bad</option>
<option value="No Experience">Complete
Novice</option>
</select>
<br>
<select name="sailingEx2">
<option value="Not Playing!">Please select</option>
<option value="Experienced">Expert</option>
<option value="Some Experience">Not too
bad</option>
<option value="No Experience">Complete
Novice</option>
</select>
<br>
<select name="sailingEx3">
<option value="Not Playing!">Please select</option>
<option value="Experienced">Expert</option>
<option value="Some Experience">Not too
bad</option>
<option value="No Experience">Complete
Novice</option>
</select>
<br>
<select name="sailingEx4">
<option value="Not Playing!">Please select</option>
<option value="Experienced">Expert</option>
<option value="Some Experience">Not too
bad</option>
<option value="No Experience">Complete
Novice</option>
</select>
</p></td>
</tr>
<tr>
<td height="23"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="23"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
PHP code
<tr>
<td>Sailing 1:</td>
<td>$sailing1 </td>
</tr>
<tr>
<td>Sailing Exp 1:</td>
<td>$sailingEx1 </td>
</tr>
Thanks