Menu
I have a tiny script that allows me to submit form via POST from a text link.
[code=php]
<script language=”JavaScript”>
<!–
function linkSubmit() {
document.myForm.submit();
}
//–>
</script>
<form name=”myForm” method=”post” action=”index.php”>
<input type=hidden name=tab value=”value1″>
</form>
<a href=”#” onClick=”linkSubmit(); return false;”>Link1</a>
I need to add 4 more links but I do not want to duplicate forms and Javascript. Is it possible to make several links use the same script and form?