How can I make use of thisi ASP instruction in trying to restrict access to a page.
If Instr(Request.ServerVariable(HTTP_REFERER),"pagena me.asp")
The pagename is the name of the page that containsn the form action.
<%
if Instr (Request.ServerVariables(HTTP_REFERER),"log") = "true" then
response.write("INVALID USER")
session.contents.remove("login")
end if
%>
<%
if request.form("btnsubmit") = "submit" then
if request.form("fname") = username and request.form("pw")= password then
response.redirect("welcome.asp")
else
response.redirect("DEFAULT.ASP")
end if
end if
%>
Both ASP commands are on two different pages.
ERROR CODES
The error codes displayed is
string expected as input