Passing parameter in Hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhishekbrave
    New Member
    • Dec 2007
    • 79

    Passing parameter in Hyperlink

    Hi
    Can we pass a value through hyperlink.
    My requirement is that suppose i have 3 hyperlinks 1 2 3
    When I click on 1 or 2 or 3 another HTML page will get open having the information that "1 is clicked" if I click 1.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Yes and no. If you make each hyperlink contain a value in the link address then your server side software can read that, such as <a href="http://www.mysite.com/1">. Otherwise, no, hyperlinks can't be used for that, in which case you could use a form submit in its place.

    Comment

    • abhishekbrave
      New Member
      • Dec 2007
      • 79

      #3
      Originally posted by drhowarddrfine
      Yes and no. If you make each hyperlink contain a value in the link address then your server side software can read that, such as <a href="http://www.mysite.com/1">. Otherwise, no, hyperlinks can't be used for that, in which case you could use a form submit in its place.
      can u give an example about how to contain value in the hyperlink

      Comment

      • abhishekbrave
        New Member
        • Dec 2007
        • 79

        #4
        passing multiple parameters in hyperlink

        below is the code for passing a parameter in hyperlink
        <a href="volmonrep .jsp?value=year " target="MAINBOD Y1">JAN</a>
        how can i pass 1 more parameter in the same link...

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          By adding on to the first paramter, "...?value=year &value=month etc.
          This is as I said in the other post, using a server side language. I will merge these two threads as soon as I remember how to do it.

          Comment

          Working...