How to do url-asp redirection. Step 1: join.asp Step 2: edu.add.asp IF coming from join asp, OPEN, else REDIRECT index.asp Step 3: other.add.asp IF coming from edu.add.asp, OPEN, else REDIRECT index.asp Step 4: exp.add.asp IF coming from other.add.asp, OPEN, else REDIRECT index.asp Step 5: att.add.asp IF coming from att.add.asp, OPEN, else REDIRECT index.asp
How to do url-asp redirection not to enter specific page other than in sequence?
Collapse
X
-
Originally posted by pchaharHow to do url-asp redirection.
Step 1: join.asp
Step 2: edu.add.asp IF coming from join asp, OPEN, else REDIRECT index.asp
Step 3: other.add.asp IF coming from edu.add.asp, OPEN, else REDIRECT index.asp
Step 4: exp.add.asp IF coming from other.add.asp, OPEN, else REDIRECT index.asp
Step 5: att.add.asp IF coming from att.add.asp, OPEN, else REDIRECT index.aspexampleCode:----- edu.add.asp ----- <% if request.servervariables("http_referer") <> "join.asp" then response.redirect "join.asp" end if %> -
i think the above code is not working, if i am wrong i am sorry as it was not working for me. but i tried the same using a session passing its value to the next page and checking the condition and redirecting it from there.
if i am write about the above coding try my logic it will work. any problem then reply and get me a note in my personal message so that i can identify that u have replied.
regards.....Comment
Comment