Code:
<HTML>
<HEAD><TITLE>TextBox Checking</TITLE>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Submit_OnClick
Dim form
Set form = Document.ValidForm
If IsNumeric(form.txtb1.Value) Then
If form.txtb1.Value < 11 Or form.txtb1.Value > 20 Then
MsgBox "Please input from a range of 11 - 20"
End If
Else
MsgBox "Only Numbers."
End If
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<H3>Verifications</H3><HR>
<FORM NAME="fform">
Give a number from 11 to 20:
<INPUT NAME="txtb1" TYPE="TEXT" SIZE="2">
<INPUT NAME="Submit" TYPE="BUTTON" VALUE="Submit">
</FORM>
</BODY>
</HTML>
I used this program to validate the entries in my textbox. I have used VBscript as the Scripting language. I guess you can work on this code to modify it accordingly.
Bookmarks