Closed Thread Icon

Topic awaiting preservation: Help with forms (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8491" title="Pages that link to Topic awaiting preservation: Help with forms (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Help with forms <span class="small">(Page 1 of 1)</span>\

 
TanGoZ
Nervous Wreck (II) Inmate

From: UK
Insane since: Jan 2003

posted posted 01-27-2003 14:20

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!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-27-2003 16:03

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 01-27-2003 17:39

Where do you want the checking done?

When the form is submitted?



.:[ Never resist a perfect moment ]:.

« BackwardsOnwards »

Show Forum Drop Down Menu