Mhtml
09-13-2002, 11:35 AM
Ok problem. I have a redirection script :
<% dim GetQueryStr ScriptsPage, TutorialsPage, DownloadsPage, ContactPage
ScriptsPage = Server.MapPath("scripts.asp")
TutorialsPage = Server.MapPath("tutorials.asp")
DownloadsPage = Server.MapPath("downloads.asp")
ContactPage = Server.MapPath("contact.asp")
GetQueryStr = Request.QueryString("s")
if GetQueryStr = scripts then
Response.Redirect(ScriptsPage)
end if
and it just goes on like that, and I send the ?s=scripts or whatever section the link goes to but I just get a download window for my .asp file being loaded but if I just type in the address the page comes up.
Also how can I make the script smaller, I'm not sure how to use arrays.
<% dim GetQueryStr ScriptsPage, TutorialsPage, DownloadsPage, ContactPage
ScriptsPage = Server.MapPath("scripts.asp")
TutorialsPage = Server.MapPath("tutorials.asp")
DownloadsPage = Server.MapPath("downloads.asp")
ContactPage = Server.MapPath("contact.asp")
GetQueryStr = Request.QueryString("s")
if GetQueryStr = scripts then
Response.Redirect(ScriptsPage)
end if
and it just goes on like that, and I send the ?s=scripts or whatever section the link goes to but I just get a download window for my .asp file being loaded but if I just type in the address the page comes up.
Also how can I make the script smaller, I'm not sure how to use arrays.