467,163 Members | 1,012 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,163 developers. It's quick & easy.

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.
Feb 24 '08 #1
  • viewed: 6611
Share:
4 Replies
drhowarddrfine
Expert 4TB
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.
Feb 24 '08 #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.
can u give an example about how to contain value in the hyperlink
Feb 24 '08 #3
below is the code for passing a parameter in hyperlink
<a href="volmonrep.jsp?value=year" target="MAINBODY1">JAN</a>
how can i pass 1 more parameter in the same link...
Feb 24 '08 #4
drhowarddrfine
Expert 4TB
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.
Feb 24 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Mo | last post: by
4 posts views Thread by Gibs | last post: by
reply views Thread by Viktor Popov | last post: by
4 posts views Thread by Lan H. Nguyen | last post: by
1 post views Thread by Laura K | last post: by
4 posts views Thread by SJ | last post: by
reply views Thread by =?Utf-8?B?Sk9SR0UgTUFMRE9OQURP?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.