R
Rudi Ahlers
I have the following link: http://hobbit/newhp/index.asp?l=advert, and it
doesn't do what I want it to do, even though the file exists.
If a file doesn't exist, it should use home.asp as default, yet it uses
home.asp as default regardless if the file exists or not?
Here is the script:
linkname = request.QueryString("l")
if linkname <> "" then
page = linkname & ".html"
If objFSO.FileExists(page) = false Then
page = "home.asp"
End If
end if
If http://hobbit/newhp/index.asp?l=advert123 (which doesn't exist) it goes
to home.asp, which is what I want, but it also does it for all the files
that does exist, and reason for that?
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
doesn't do what I want it to do, even though the file exists.
If a file doesn't exist, it should use home.asp as default, yet it uses
home.asp as default regardless if the file exists or not?
Here is the script:
linkname = request.QueryString("l")
if linkname <> "" then
page = linkname & ".html"
If objFSO.FileExists(page) = false Then
page = "home.asp"
End If
end if
If http://hobbit/newhp/index.asp?l=advert123 (which doesn't exist) it goes
to home.asp, which is what I want, but it also does it for all the files
that does exist, and reason for that?
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).