function submitFunction(i) {
if (i==1) document.form1.action=
"http://www.company.com/cgi-bin/cgi1.cgi";
if (i==2) document.form1.action=
"http://www.company.com/cgi-bin/cgi2.cgi";
if (i==3) document.form1.action=
"http://www.company.com/cgi-bin/cgi3.cgi";
document.form1.submit()
}
</SCRIPT>
<FORM NAME="form1">
<INPUT TYPE="button" VALUE="Submit 1" onClick="submitFunction(1)">
<INPUT TYPE="button" VALUE="Submit 2" onClick="submitFunction(2)">
<INPUT TYPE="button" VALUE="Submit 3" onClick="submitFunction(3)">
</FORM>
No comments:
Post a Comment