Hi all,
I have a login page (name and password) to limit access a couple pages. I am done with the checking and redirect but I get error message if I do something like this:
<%' login.html %>
<form method="post" action="validate.asp">
Name: <input type = "text" name="name">
PWord:<input type = "password" name="pw">
<input type="submit" value="submit">
</form>
<% 'validate.asp %>
If Request.Form("name" = "someName"
AND Request.Form("pw" = "somePw" Then
Response.Redierct "myasp.asp"
Else
Response.Redirect "mylogin.html"
End If
%>
It works fine like that but if I want to display a message say "Invalid name & password" in the login page.
How do I do that???
Thanks for help
GH
I have a login page (name and password) to limit access a couple pages. I am done with the checking and redirect but I get error message if I do something like this:
<%' login.html %>
<form method="post" action="validate.asp">
Name: <input type = "text" name="name">
PWord:<input type = "password" name="pw">
<input type="submit" value="submit">
</form>
<% 'validate.asp %>
If Request.Form("name" = "someName"
AND Request.Form("pw" = "somePw" Then
Response.Redierct "myasp.asp"
Else
Response.Redirect "mylogin.html"
End If
%>
It works fine like that but if I want to display a message say "Invalid name & password" in the login page.
How do I do that???
Thanks for help
GH