How can I make use of thisi ASP instruction in trying to restrict access to a page.
If Instr(Request.S erverVariable(H TTP_REFERER),"p agename.asp")
The pagename is the name of the page that containsn the form action.
<%
if Instr (Request.Server Variables(HTTP_ REFERER),"log") = "true" then
response.write( "INVALID USER")
session.content s.remove("login ")
end if
%>
<%
if request.form("b tnsubmit") = "submit" then
if request.form("f name") = username and request.form("p w")= password then
response.redire ct("welcome.asp ")
else
response.redire ct("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