What is wrong I want the form and the form validation in the same page

What is wrong I want the form and the form validation in the same page

am 30.09.2005 16:01:09 von karenmiddleol

I have a simple form to accept two form fields and display the values
entered on pressing the submit button. The following is the form I have
created to accept the two entries and display the form fields on
pressing the submit form. It does not work can somebody please correct
the code or provide a simple equivalent code where I can have the form
and the validation and usage of the form values in the same ASP page.

Thanks
Karen




>From Period :


To Period :



<%
Dim FromVal, ToVal
FromVal = Request.Form("FromPeriod")
ToVal = Request.Form("ToPeriod")
Response.Write FromVal
Response.Write ToVal


If FromVal & ToVal <> ""
Then
Response.Write "Valid data entered"
End If
%>