By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Passing parameter in Hyperlink

P: 79
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
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
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

P: 79
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

P: 79
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 5K+
P: 7,435
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.