ASP Form Validation Page 1 Source Code
<html>
<head>
<title>ASP Form Validation - Page 1</title>
</head>
<body>
<h2> ASP Form Validation </h2>
The form on this page is for showing form validation techniques.
<br>
If you enter inappropriate data in the fields on this page, the page we submit
to will display an error and return us to this page.
<p><font color="#0000FF">Validation
Rules in place are:<br>
1. Start Date must be a valid date.<br>
2. End Date must be a valid date.<br>
3. End Date must be equal to or later than Start Date.<br>
4. Number must be a valid number between 1 and 10</font><br>
</p>
<form name="form1" method="Post"
action="ASP_Form_Validation_Page2.asp">
Start Date: <input type="Text"
name="StartDate" value="<%=date()%>"
size="12">
<font color="#FF0000">Will cause error if
not a date value (try and see) </font>
<br>
End Date: <input type="Text"
name="EndDate" size="12">
<font color="#FF0000">Will
cause error if not a date value (try and see) </font>
<br>
Number: <input type="Text"
name="NumberValue1" size="5">
<font color="#FF0000">Only
Numbers 1 - 10 are valid here.</font>
<br>
<br>
<input type="submit" value="Submit Form"
name="btnSubmit">
<input type="button" value="View
Source Code" name="btnSource"
onClick="window.open('ASP_Form_Validation_Page1_Source.htm')">
</form>
</body>
</html>