<%
needAuthentication = True
If Request.Form.Count > 0 Then
If Request.Form("username") <> "jon" Or Request.Form("password") <> "secret" Then
' Redirect to another URI
Response.Redirect("/")
Response.End
End If
needAuthentication = False
End If
%>
<%
If needAuthentication Then
%>
<%
Else
%>
Page content here
<%
End If
%>
No comments:
Post a Comment