页面提交问题
我想将一个页面上表单的内容提交到两个页面,action中如何设置?通常只提交到一个页面上。
------解决方案-------------------- <SCRIPT language=javascript>
<!--
function CheckAll(form)
{
for (var i=0;i <form.elements.length;i++)
{
var e = form.elements[i];
if (e.Name != "chkAll ")
e.checked = form.chkAll.checked;
}
}
function allDel()
{
if (confirm( "是否要将选中的内容全部删除? "))
{
document.form1.action= "Bs_Article_del.asp?BigClassid= "+ <%=id%> ;
return true;
}
else
{
return false;
}
}
</script>
<input name= "submit " type= 'submit ' value= '批量删除 ' onClick= "return allDel(); ">
<input name= "Action " type= "submit " value= "批量转移 " onClick= "return change(); ">
<form name= "form1 " method= "post " action= " ">
------解决方案--------------------用JS实现,document.form1.action = "a.asp ";
document.form1.submit;
........
document.form1.action = "b.asp ";
document.form1.submit;
------解决方案--------------------loucc() 已经给出答案,来晚了