<head>
<script>
function submitit1()
//交由
{
document.myForm.action = "http://www.site.com/cgi1.
document.myForm.submit();
}
function submitit2()
//交由程序2处理
{
document.myForm.action = "http://www.site.com/cgi2.php"
document.myForm.submit();
}
</script>
</head>
<body>
<form name="myForm" METHOD=POST>
<input name="chkAll" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox">
选中本页显示的所有产品<input name="submit" type='submit' value='审核选中文章' onClick="submitit1()"> <input name="submit" type='submit' value='删除选定的产品' onClick="submitit2()">
</form>
</body>
</
注意name和type相同的