Click to See Complete Forum and Search --> : need help on querystrings using asp


pdidy
02-11-2004, 08:19 AM
hi

i have done a querystring but i am having sort of problems with it, when i access http://mydomain.com/Defautl.asp?page=home it dont stay on the url it, redirects to the http://mydomain.com/home.asp this is the code in vb:

<%
if request.querystring("page") = "home" THEN
response.redirect("/home.asp")

elseif request.querystring("page") = "events" THEN
response.redirect("/events.asp")

elseif request.querystring("page") = "servers" THEN
response.redirect("/servers.asp")

elseif request.querystring("page") = "games" THEN
response.redirect("/games.asp")

elseif request.querystring("page") = "contact" THEN
response.redirect("/conatct.asp")

END IF
%>

how can i change this so http://mydomain.com/Defautl.asp?page=home will show the home page not /home.asp

thanks