Results 1 to 2 of 2

Thread: href question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    href question

    Hi,

    I have a form with 6 hrefs all pointing to the same asp file like this.

    <a href="SearchAllowance.asp">Search</a>
    <a href="SearchAllowance.asp">Search</a>
    <a href="SearchAllowance.asp">Search</a>
    <a href="SearchAllowance.asp">Search</a>
    <a href="SearchAllowance.asp">Search</a>
    <a href="SearchAllowance.asp">Search</a>

    My question is: Is there a way to know which particular href the user clicks, if its the first search or the 2nd or the 6th search links?

    In my destination asp page, I wanted to test which link has been clicked.

    I would appreciate any help.

    Thanks.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    Pass a variable to the page. i.e.

    <a href="SearchAllowance.asp?c=1">Search</a>
    <a href="SearchAllowance.asp?c=2">Search</a>
    <a href="SearchAllowance.asp?c=3">Search</a>
    etc etc

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