<% Response.Expires = -1000 'Make sure the browser doesn't cache this page Response.Buffer = True 'enables our response.redirect to work %> Olympia Sail & Power Squadron Login <% If Request.Form("submit") ="Login" Then CheckLoginForm Else ShowLoginForm End If %> <% Sub CheckLoginForm 'check if the value of the text field 'id' are correct If Request.Form("id") = "D025144" Then Session("BlnLoggedIn") = True Response.Redirect "roster1.asp" Else 'if the values entered are incorrect then display the message below Response.Write "
Incorrect User ID

" ShowLoginForm End If End Sub %> <% Sub ShowLoginForm %>
ID Number :
<% End Sub %>