my site has quite a large include file that contains all the page styles, db connection, etc.
however, it contains a line that if a certain instance in the db is true it redircts to another page
this page also requires the use of the include file (i dont want to copy the current file minus the redirection line as im constantly updating the includes and dont want the headache of doing it twice!)
what i need to know is how do i stop the redirection process if the include file was called from the locDel.asp page?
my current code stands as
status has been set from the database several lines up (it is either true or false depending)
if it is called on the locDel.asp page then it just goes into the endless loop of openning locDel.asp
any suggestions? or am i gonna be giving myself a headache?
I can't be bothered to have a sig!
however, it contains a line that if a certain instance in the db is true it redircts to another page
this page also requires the use of the include file (i dont want to copy the current file minus the redirection line as im constantly updating the includes and dont want the headache of doing it twice!)
what i need to know is how do i stop the redirection process if the include file was called from the locDel.asp page?
my current code stands as
Code:
if status = True then
if request.servervariables("URL") <> "locDel.asp" then
response.redirect "locDel.asp"
end if
end if
if it is called on the locDel.asp page then it just goes into the endless loop of openning locDel.asp
any suggestions? or am i gonna be giving myself a headache?
I can't be bothered to have a sig!