URL variable?

Results 1 to 3 of 3

Thread: URL variable?

  1. #1
    Join Date
    Dec 1969

    Default URL variable?

    I want to create an include file that can output the URL or the file that includes it for redirection purposes. So if redirect.inc contains <BR><BR>&#060;%response.write URL%&#062;<BR><BR>and anyfile.asp contains<BR><BR>&#060;!-- #include file="./redirect.inc --&#062;<BR><BR>Then anyfile.asp should display "anyfile.asp" or "domain/anyfile.asp"<BR><BR>The question is what do I put in place of URL. Is there something like request.URL that returns the URL in the http request?<BR><BR>Obviously my include file is more complicated but this illustates my question.

  2. #2
    Join Date
    Dec 1969

    Default RE: URL variable?

    The Request.ServerVariables collection contains everything that you need.<BR><BR>Search 4guysfromrolla.com for more information about it.

  3. #3
    Join Date
    Dec 1969

    Default Request.ServerVariables(URL)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts