submitting multiple forms with javascript
<p>My script:</p>

<pre><code>&lt;script language="JavaScript"&gt;
function submitform()
{
  document.playsong.submit();
}
&lt;/script&gt;
</code></pre>

<p>Submits the below form:</p>

<pre><code>&lt;form name="playsong" method="post" action="submit.php"&gt;
&lt;input type="hidden" name="play" value="2009-05-19-3934.data"&gt;
&lt;A href="javascript: submitform()"&gt;Play 1&lt;/A&gt;
&lt;/form&gt;
</code></pre>

<p>How can I change this so that I can have a series of links: &lt;<code>A href="javascript: submitform()"&gt;Play 1&lt;/A&gt;</code> That will submit the correct form without having to build a function to submit each form.</p>

<p>That is how can I make the function submit different various forms on the page dependent the link clicked.</p>
