|
-
need help on querystrings using asp
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
Last edited by pdidy; 02-11-2004 at 09:20 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|