I do not want to use a button, because then I'll get a page with more then 21 buttons. I tried it with the button and it works great, but don't know how to do that with a link cuse that's what I wanna do.
If you're repeating this in a loop, you'll want to build the form's id attribute dynamically. The "return false" statement in the onclick event keeps it from actually behaving like a link (probably redundent in this case but it makes for clearer code.).
I know this works in Mozilla/Firefox and MSIE 6 and up. You'll have to test on legacy (pre DOM) browsers if you plan on supporting them.
I had to mispell onklick to get this top post in this forum. Change the 'k' to a 'c' to get it working. [ December 26, 2004: Message edited by: Ben Souther ]