您的位置:首页 > 其它

一个表单设置多个提交情况

2007-08-10 14:40 288 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>一表单多提交</title>
<script language="javascript">
function submit_up(p)
{
myForm.action= p;
myForm.method='POST';
myForm.submit();
}
</script>
</head>

<body>
<form id="myForm" name="form1" method="post" action="">
<input type="text" name="textfield" />
<input type="button" name="Submit" value="GO_1" onclick="submit_up('page_1.html');" />
<input type="button" name="Submit2" value="GO_2" onclick="submit_up('page_2.html');" />
</form>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐