How to capture the Search Text from hotlink

Results 1 to 2 of 2

Thread: How to capture the Search Text from hotlink

  1. #1
    John Gerdes Guest

    Default How to capture the Search Text from hotlink

    I am trying to pass information from a html page to an ASP page using the search text incorporated in the hot link url. For example<BR><BR>&#060;a href="http://page.html?SearchText"&#062;option 1&#060;/a&#062; <BR><BR>How do I capture the information after the question mark in the asp file.

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: How to capture the Search Text from hotlink

    &#060;%<BR>Dim strQueryString<BR>strQueryString = Request.QueryString<BR>%&#062;<BR><BR>You can also pass multiple variables, like so:<BR>http://www.mysever.com/duh.asp?var1=val1&var2=val2<BR><BR>And read them like:<BR>&#060;%<BR>Dim var1, var2<BR>var1 = Request.QueryString("var1")<BR>var2 = Request.QueryString("var2")<BR>%&#062;<BR><BR>See: <BR>http://www.4guysfromrolla.com/webtech/faq/Intermediate/faq4.shtml<BR>for more examples! :)<BR><BR>Does this answer your question? If you&#039re still confused, let us know, and we will answer any questions for you!

Posting Permissions

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