PDA

View Full Version : Need help with redirect script (basing it on session variables)


ABC123

coleresources
07-01-2013, 03:52 PM
Should this work?

Application server is telling me I am missing an "end if". Do I have to terminate each if statement?

<%a5
if session.projcode = "0506" then
response.redirect("url1.com")
else
if session.projcode = "0508"
response.redirect("url2.com")
else
if session.projcode = "0509"
response.redirect("url3.com")
else
if session.projcode = "0480"
response.redirect("url4.com")
end if

%>

Edit:

I figured it out. Please disregard. Would have deleted the post if it had let me.