What is wrong with my HTML?

whatever_noone

New member
What I have is this:

< form name="myform" action="submit.php" method="post" >
< a name="link" value="1" onclick="javascript-submit-form" >Link 1< /a >
< a name="link" value="2" onclick="javascript-submit-form" >Link 2 < /a >
< /form >
"javascript-submit-form" is actually the javascript to submit the form, but its too long to put here.

*** *** ***

The way I see it, when I click Link 1, the server should consider the value of "link" to be "1". If I click Link 2, then "link" is "2". But instead "link" is always blank. What am I doing wrong?
Myles, your suggestion worked, but I also had to set the hidden input's ID (it's getElementById). Thank you, 10 points are coming your way.
 
Back
Top