<script language="javascript">
function Asubmit()
{
' put form validation in here
document.myform.method="post";
document.myform.action="page1.htm";
document.myform.submit();
}
function Bsubmit()
{
' put form validation in here
document.myform.method="post";
document.myform.action="page2.htm";
document.myform.submit();
}
</script>
<body>
<form name="myform">
your form elements
<input type="button" value="submit1" onClick="Asubmit();">
<input type="button" value="submit2" onClick="Bsubmit();">
</form>
</body>
function Asubmit()
{
' put form validation in here
document.myform.method="post";
document.myform.action="page1.htm";
document.myform.submit(); //-------------------------เอาบรรทัดนี้ออกคับ
}
function Bsubmit()
{
' put form validation in here
document.myform.method="post";
document.myform.action="page2.htm";
document.myform.submit(); //-------------------------เอาบรรทัดนี้ออกคับ
}