Forums
This topic is locked
Server-side Form Validation
30 Jan 2004 00:23:07 A. B. posted:
I cannot understand the server-side form validation examples I've found on the web. Does someone have a tutorial or simple example of server-side form validation? All I want to do is make sure that there is data in every field... I do not need any number or email validation.I'd appreciate any help that someone can offer me.
Thanks.
Andrea
Replies
Replied 30 Jan 2004 16:34:04
30 Jan 2004 16:34:04 Lee Diggins replied:
Hi Andrea
Something like this maybe:
<%
Dim FieldValue
For Each Item In Request.Form
FieldValue = Request.Form(Item)
If FieldValue = "" Then
Response.Redirect("myForm.asp"
End If
Next
%>
Digga
Sharing Knowledge Saves Valuable Time!!!
Something like this maybe:
<%
Dim FieldValue
For Each Item In Request.Form
FieldValue = Request.Form(Item)
If FieldValue = "" Then
Response.Redirect("myForm.asp"
End If
Next
%>
Digga
Sharing Knowledge Saves Valuable Time!!!