<%
'ON THE FIRST TIME THAT THIS PAGE LOADS, SESSION("ERRORS") HAS NO VALUE AND SO
'EQUALS 0. ON SUBSEQUENT VISITS, SESSION("ERRORS WILL HAVE A VALUE OF 1 OR
'MORE IF ERRORS WERE MADE
if Session("Errors")=0 then
response.write "Please fill out the form"
else
'ERRORS WERE MADE SO LIST THEM IN THE REST OF THE TABLE
'reset our error counter
Session("Errors")="0"
response.write " There are errors in your data. " & _
"Please make the following changes before " & _
"clicking the submit button: "
response.write""
'THESE SESSION VARIABLES ARE SET IN THE SECOND PAGE
' IF THERE WERE ERRORS 'VALUE IS "F"
If Session("badFirstName") = "T" then
Response.write "| The First " & _
"Name field must be completed."
Response.write " | "
Session("badFirstName")="F"
End If
If Session("badLastName") = "T" then
Response.write "| The Last Name " & _
"field must be completed. "
Response.write " | "
Session("badLastName")="F"
End If
If Session("badDate") = "T" then
Response.write "| Date must be " & _
"in the format mm/dd/yyyy. "
Response.write " | "
Session("badDate")="F"
End If
'END THE ERRORS TABLE
response.write " "
End If
%>
|