Link to home
Start Free TrialLog in
Avatar of gianitoo
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.asp")
else
Response.Redirect("index.asp")
end if
%>
Avatar of hongjun
hongjun
Flag of Singapore image

Your code looks ok..
Avatar of gianitoo
gianitoo

ASKER

but it goes back to login.asp
ASKER CERTIFIED SOLUTION
Avatar of hongjun
hongjun
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
.. what's your question??? @_@
What page are you in now?
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?