Results 1 to 5 of 5

Thread: Request.ServerVariables("Path_Info")

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Request.ServerVariables("Path_Info")

    http://www.sitename.com/portals/vhp/member/

    Code:
    strVirtualPath = Request.ServerVariables("Path_Info")
    arrayPath=split(strVirtualPath,"/")
    
    If UCase(arrayPath(2)) = "VHP" Then
    	portalName = "vhp"
    Else
    	portalName = "other"
    End If
    Given the code above what would portalName be set to?

    *** i thought it was VHP...
    Last edited by texas; Jun 13th, 2006 at 09:43 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Request.ServerVariables("Path_Info") (Resolved)

    Other. I am not sure how you arrived at VHP.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: Request.ServerVariables("Path_Info") (Resolved)

    what is the value of arrayPath(2) ?

  4. #4
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Request.ServerVariables("Path_Info")

    0=http:
    1=
    2=www.sitename.com
    3=portals
    4=vhp
    5=member
    6=

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Request.ServerVariables("Path_Info")

    What is your question? If you want VHP, use 4.

Posting Permissions

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



Click Here to Expand Forum to Full Width