<%
Dim sTemp: sTemp = Request.ServerVariables("PATH_INFO")
Response.Redirect "/login.asp?ret=" & sTemp
%>
Or
<%
Dim sTemp: sTemp = Request.ServerVariables("URL")
Response.Redirect "/login.asp?ret=" & sTemp
%>
Or
<%
Dim sTemp: sTemp = Request.ServerVariables("SCRIPT_NAME")
Response.Redirect "/login.asp?ret=" & sTemp
%>
.... and if there's a querystring to go with it;
<%
Dim sTemp: sTemp = Request.ServerVariables("PATH_INFO")
Dim sQuery: sQuery = Request.ServerVariables("QUERY_STRING")
Response.Redirect "/login.asp?ret=" & sTemp & "?" & sQuery
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Katie" <Dn*********@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hi,
I want to be able to send users links to pages in my website. But if
they arent logged in I want them to first be redirected to the login
page and after they login automatically be redirected to the page i
sent them in the link. How would i accomplish this.
Thanks for your time and help
:)