GeForce
07-14-2004, 10:20 PM
Hi everyone,
I have been told that "Our servers only run ApacheASP at the moment which may only run Perl based script."
So how would I convert the following script so it will run on my server?
<%
url=request.QueryString("link") 'set the variable url to the url query string
st=request.QueryString("st") 'set the variable st to the st query string
if st = 0 then 'check to see if st is equal to 0
response.Redirect(url) 'redirects the page to the url variable
elseif st = 1 then
response.Redirect("https://" & url)
else 'if st is equal to anything else
response.Redirect("/index.html") 'redirects to the home page if the st not equal to 0
end if
%>
Thank you in advance,
Jon :cool:
I have been told that "Our servers only run ApacheASP at the moment which may only run Perl based script."
So how would I convert the following script so it will run on my server?
<%
url=request.QueryString("link") 'set the variable url to the url query string
st=request.QueryString("st") 'set the variable st to the st query string
if st = 0 then 'check to see if st is equal to 0
response.Redirect(url) 'redirects the page to the url variable
elseif st = 1 then
response.Redirect("https://" & url)
else 'if st is equal to anything else
response.Redirect("/index.html") 'redirects to the home page if the st not equal to 0
end if
%>
Thank you in advance,
Jon :cool: