Server variable riddle - extract typed in querystring after url

Discussion in 'ASP General' started by jason, Oct 30, 2003.

  1. jason

    jason Guest

    Could someone help me figure out how to utilize .servervarialbles (or
    another creative method) to do the following:

    If someone types into browser (or clicks a querystring hyperlink) with the
    following....

    http://www.boat.com/?cat=CrazyHorse

    ....* Is it possible to extract the ?cat=Crazyhorse
    from the typed in or clicked url when he reaches that root page?

    I thought perhaps this could work but no:

    CrewedCat = Request.ServerVariables("QUERY_STRING") Response.Write "
    " & CrewedCat & "
    "
    jason, Oct 30, 2003
    #1
    1. Advertising

  2. jason

    SiteGuru Guest

    CrewedCat = Request.Querystring("cat")

    --
    --
    Cheers!
    SiteGuru
    http://www.siteguru.co.uk
    "jason" <> wrote in message
    news:...
    > Could someone help me figure out how to utilize .servervarialbles (or
    > another creative method) to do the following:
    >
    > If someone types into browser (or clicks a querystring hyperlink) with the
    > following....
    >
    > http://www.boat.com/?cat=CrazyHorse
    >
    > ...* Is it possible to extract the ?cat=Crazyhorse
    > from the typed in or clicked url when he reaches that root page?
    >
    > I thought perhaps this could work but no:
    >
    > CrewedCat = Request.ServerVariables("QUERY_STRING") Response.Write "
    > " & CrewedCat & "
    > "
    >
    >
    SiteGuru, Oct 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,004
    Travis Murray
    Aug 24, 2004
  2. Ersin Gençtürk
    Replies:
    1
    Views:
    3,466
    Ersin Gençtürk
    Oct 6, 2004
  3. Ken Varn
    Replies:
    2
    Views:
    612
    Ken Varn
    Jun 22, 2005
  4. Yingjie Lan
    Replies:
    4
    Views:
    289
    John Nagle
    Jan 29, 2010
  5. Adeel Ahmad
    Replies:
    1
    Views:
    353
    Anthony Jones
    Mar 7, 2006
Loading...

Share This Page