Hi,
Can anyone please help, i have created a response form for people to fill in using Mat's FormMail, however, i would like them to include a phone number, is there any validation code that will only allow them to put numbers, no non-numeric characters to the telephone field (minimum 10 numbers).
Script is as follows:
<td align=right width="39%" height=25>
<p align=right><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">Full
Name:</font></p>
</td>
<center>
<td width="61%" height=25> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=1 size=35 font color="#fc6203"
name="requiredname">
</font></b></td>
</center>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Email:</font></font></td>
<td width="61%" height=25> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=1 size=35
name=requiredemail>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Address:</font></font></td>
<td width="61%" height=25> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=11 size=35
name=domain>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><b></b></td>
<td width="61%" height=25> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=3 size=35
name=address1>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><b></b></td>
<td width="61%" height=25> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=4 size=35 name=address2>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Town
/ City:</font></font></td>
<td width="61%" height=25><b><font face="Geneva, Arial, Helvetica, san-serif" size="-2" color="#fc6203">
<input
tabindex=5 name=requiredtown>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">County:</font></font></td>
<td width="61%" height=25><b><font face="Geneva, Arial, Helvetica, san-serif" size="-2" color="#fc6203">
<input
tabindex=6 name=requiredcounty>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Postal
Code:</font></font></td>
<td width="61%" height=25><b><font face="Geneva, Arial, Helvetica, san-serif" size="-2" color="#fc6203">
<input
tabindex=7 size=8 name=requiredpostcode>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=24><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Country:</font></font></td>
<td width="61%" height=24> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<select
tabindex=8 size=1 name="select">
<option
selected>England</option>
<option>Ireland</option>
<option>Scotland</option>
<option>Wales</option>
<option>Republic Of Ireland</option>
</select>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Telephone
Number:</font></font></td>
<td align=left width="61%" height=25><b><font size="-2" color="#fc6203" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=9 name=requiredtelephone>
(land line preffered)</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=24><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif" size="-2">Request
Information About:</font></td>
<td width="61%" height=24> <b><font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<select
tabindex=10 size=1 name=requestedinformation>
<option
selected>General</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>
</font></b></td>
</tr>
<tr>
<td align=right width="39%" height=25><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif"><font size="-2">Your
Preferred Domain Name:</font></font></td>
<td align=left width="61%" height=25><b><font size="-2" color="#fc6203" face="Geneva, Arial, Helvetica, san-serif">
<input tabindex=10 name=domainpreferrence>
</font></b></td>
</tr>
<tr>
<td valign=top align=right width="39%" height=25><b></b></td>
<td valign=center align=left width="61%" height=25>
<p align=left><b><font face="Geneva, Arial, Helvetica, san-serif" color="#fc6203" size="-2">
<input type=submit value="Send" name="submit2">
</font> <font color="#fc6203" size="-2" face="Geneva, Arial, Helvetica, san-serif">
<input type=reset value="Clear form" name="reset2">
</font></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<div align="left"><font color="#fc6203" face="Geneva, Arial, Helvetica, san-serif">
<input
type=hidden value=enquiries@******.co.uk name=recipient>
<input
type=hidden value=http://www.*******.co.uk/thanks.html
name=redirect>
<input type=hidden
value="Response...(from website)" name=subject>
</font></div>
</td>
Thanks
Pain is weakness leaving the body!