My script:
<script language="JavaScript">
function submitform()
{
document.playsong.submit();
}
</script>
Submits the below form:
<form name="playsong" method="post" action="submit.php">
<input type="hidden" name="play" value="2009-05-19-3934.data">
<A href="javascript: submitform()">Play 1</A>
</form>
How can I change this so that I can have a series of links: <A href="javascript: submitform()">Play 1</A>
That will submit the correct form without having to build a function to submit each form.
That is how can I make the function submit different various forms on the page dependent the link clicked.