gianitoo
asked on
redirect statement
now i want instead to create a page with this code if fails go back to login but if it suceeds then i would like to go to index.asp
<%@LANGUAGE="VBSCRIPT"%>
<%
Session("username") = Request.Form("txt_username ")
If Session("username") <> "Cadillac" Then
Response.Redirect("login.a sp")
else
Response.Redirect("index.a sp")
end if
%>
<%@LANGUAGE="VBSCRIPT"%>
<%
Session("username") = Request.Form("txt_username
If Session("username") <> "Cadillac" Then
Response.Redirect("login.a
else
Response.Redirect("index.a
end if
%>
Your code looks ok..
ASKER
but it goes back to login.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
.. what's your question??? @_@
What page are you in now?
Your login page or other pages?
Your login page or other pages?
In your other pages (not your login page check), you SHOULD NOT have the check with Request.Form because they will not exist
Is your question answered?
Sure?
Sure?