I have a validation page, the code I have taken from a example I found on a web page.
The page/validation works great.
Does anyone know how to use similar validation but instead of going to a new page to show the validation messages, the message appears in a message or alert box over the present page?
Thanks.
Here is the code
The page/validation works great.
Does anyone know how to use similar validation but instead of going to a new page to show the validation messages, the message appears in a message or alert box over the present page?
Thanks.
Here is the code
Code:
<%
DIM strEmail, strSubject, strComments
strEmail = Request.Form("Email")
strSubject = Request.Form("Subject")
strComments = Request.Form("Comments")
IF strEmail <> "" AND strSubject <> "" AND strComments <> "" THEN
' Process the form as you like here
' For example enter form to your database or send it via email
ELSE
Response.Write "<p>Please click back on your browser and complete the following fields:</p>"
IF strEmail <> "" THEN
ELSE
Response.Write "<b>• Email</b><br>"
END IF
IF strSubject<> "" THEN
ELSE
Response.Write "<b>• Subject</b><br>"
END IF
IF strComments <> "" THEN
ELSE
Response.Write "<b>• Comments</b><br>"
END IF
END IF
%>