日期:2014-05-17  浏览次数:20677 次

关于提交表单和分页跳转按妞问题
请教各位挖.偶弄了个表单然后里面有提交按妞一个和分页跳转按妞.但跳转按妞只能是跳转当前表单.提交按妞要提交到另一个页.怎么才能实现呢.表单只有一个

------解决方案--------------------
<script language= "javascript ">
function button1()
{
f1.action= "url ";
f1.submit();
}
function button2()
{
f1.action= "url ";
f1.submit();
}
</script>
<form method= "POST " action= " " name= "f1 ">
<p> <input type= "text " name= "T1 " size= "20 "> </p>
<p> <input type= "button " value= "按钮 " name= "B3 " onclick= "button1() "> &nbsp;&nbsp;
<input type= "button " value= "按钮 " name= "B4 " onclick= "button2() "> </p>
</form>
------解决方案--------------------
搞不懂,楼主为什么要把提交按钮和分页写在一个form里