Forums

ASP

This topic is locked

help with querystring

Posted 02 Sep 2006 22:32:56
1
has voted
02 Sep 2006 22:32:56 jason Sum posted:
Help someone.
i am trying to get the current querysting (url) then proform a sort varible in the same page.
can someone help me on this.
cheers.

Replies

Replied 11 Sep 2006 05:24:02
11 Sep 2006 05:24:02 Kelly Bell replied:
Thats a easy one mate.

Answer:
strWebUrl = Request.ServerVariables("HTTP_HOST"

Hope that the answer you are looking for.
Replied 11 Sep 2006 05:27:42
11 Sep 2006 05:27:42 Kelly Bell replied:
If you want to Request the whole URL from your Address.


Example:
www.domainname.co.nz/default.asp?pageid=myhomepage


Answer:

Request.ServerVariables("CODE-ETC"

HTTP_HOST = www.domainname.co.nz
SCRIPT_NAME = /default.asp
QUERY_STRING = pageid=myhomepage

Hope that helps!

Reply to this topic