一个表单设置多个提交情况
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>
<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>
相关文章推荐
- 一个表单设置多个提交情况
- 让一个表单根据不同的情况提交给两种不同的方法处理
- 文件上传下载时,在form表单中设置属性enctype=“multipart/form-data”的情况下,如何获取表单提交的值?
- jquery的layer弹出层框架,如果设置 iframe弹出一个页面里是表单提交,提交完怎么关闭弹出层
- 解决select 下拉框 设置disabled属性后 form表单提交到后台取不到值的情况
- jquery的layer弹出层框架,如果设置 iframe弹出一个页面里是表单提交,提交完怎么关闭弹出层
- 一个表单form 多个action提交
- PHP的一个基础知识 表单提交
- input设置为disabled,表单无法提交后台解决方法
- Spring Boot教程(三十)通过springboot 去创建和提交一个表单
- 一个IE7下,用form表单跳转iframe提交,然后下载文件。遇到的很有意思的问题
- 表单用reset()清空,但我想保留一个文本框的值,不能清空因设置什么属性呢。
- 自己在jquery中表单提交的时候经常犯的一个小错误
- 关于设置表单重复提交、验证码超时的那点事
- 当只有一个input的时候按回车键时,input会默认提交表单
- 表单按回车自动提交 1、当form表单中只有一个<input type="text" name='name' />时按回车键将会自动将表单提交。 <form id='form1' action='a
- js 提交form表单 和 设置form 表单请求路径
- 一直复略了的一个问题,关于表单重复提交
- 设置cookie倒计时让让表单自动提交
- springMVC处理表单重复提交,包含页面多个嵌套提交的情况,自定义token处理