Displaying the full url

Results 1 to 2 of 2

Thread: Displaying the full url

  1. #1
    Join Date
    Dec 1969

    Default Displaying the full url

    Hi I am trying to capture the url to a string. For example. If the url is localhost/directory/somefile.asp?sort=something my string should contain somefile.asp?sort=something. Is this possible? referrer does not do the job, nor does URL. <BR><BR>THanks for your help

  2. #2
    Join Date
    Dec 1969

    Default RE: Displaying the full url

    You have to use both...<BR><BR>Request.ServerVariables("SCRIPT_NAM E")<BR>-- This will give you the full virtual path to the file...<BR><BR>And <BR><BR>Request.ServerVariables("QUERY_STRING")<BR >-- This will give you the entire query string<BR><BR>Once you have both of these you&#039;ll need to do some string parsing to get only the information you want...<BR><BR>Hope this helps... <BR><BR>--F<BR>

Posting Permissions

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