社区
ASP
帖子详情
提交表单的问题
capo
2004-01-13 09:19:49
请问各位,为何提交表单时,会出现只提交表格的第一行,而第二行开始就无法提交上去。有人碰到过这种情况没有?请赐教!
...全文
89
7
打赏
收藏
提交表单的问题
请问各位,为何提交表单时,会出现只提交表格的第一行,而第二行开始就无法提交上去。有人碰到过这种情况没有?请赐教!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
capo
2004-01-13
打赏
举报
回复
问题找到了,犯了个低级错误。不过还要感谢各位!
more000
2004-01-13
打赏
举报
回复
form里的判断语句的逻辑和包含文件这两个地方有问题
把你的思路说出来 ,应该会有别的更好的方法来实现你的功能
blue_butterfly
2004-01-13
打赏
举报
回复
晕~~
xzq686
2004-01-13
打赏
举报
回复
晕,这样的代码?
没有错误信息,那就是剩下的都提交过去空值。
用的包涵文件太多,上哪找错呀??
晕!
capo
2004-01-13
打赏
举报
回复
<!--#include file="conn.asp"-->
<%
'-----------------------------------------
username=Request.Cookies("username")
dw=Request.Cookies("dw")
if username="" then
response.redirect "index.asp"
response.end
end if
'--------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<div align="center">
<table border="0" width="1200" height="120" cellspacing="0" cellpadding="0">
<form method="post" action="editdayfindb.asp">
<tr>
<td align="center" height="100%">
<p align="center"><!--#include file="dayhead.htm"-->
</td>
</tr>
<% If dw="作业二区" then %>
<tr>
<td height="100%" align="right">
<p align="center"> <!--#include file="bodyup.htm"-->
</td>
</tr>
<% else %>
<tr>
<td align="center" height="100%">
<p align="center"> <!--#include file="bodydown.htm"--></td>
</tr>
<% end if %>
<% If dw="全局" then %>
<tr>
<td height="100%" align="right">
<p align="center"> <!--#include file="bodyup.htm"-->
</td>
</tr>
<tr>
<td>
<p align="center"><!--#include file="button.htm"--></td>
</tr>
<% else %>
<tr>
<td>
<p align="center"><!--#include file="button.htm"--></td>
</tr>
<% end if %>
</form>
</table>
</div>
</body>
</html>
xzq686
2004-01-13
打赏
举报
回复
代码和出错信息帖出来
潜水的鱼
2004-01-13
打赏
举报
回复
说清楚,把代码帖出来
jquery-form.js 源码
异步
提交
表单
和上传文件jquery-form.js
Form
表单
回车(Enter)
提交
表单
问题
在Form
表单
中input会自动响应回车事件。这是
表单
的默认
提交
动作。
表单
的
提交
行为,可以用两种方式定义,一是form
表单
自身,二是form
表单
的button元素(包括type='submit’的input标签,以及type=‘submit’的button元素,button元素type为Submit)。而点击Enter键会触发form
表单
提交
。这被称为隐式
提交
,如果要阻止回车键
提交
表单
,可以在form标签内添加如下代码 ng-keydown 指令不会覆盖元素的原生 onkeydown 事件, 事件触发时,n
button按钮
提交
表单
问题
问题
描述:
表单
中嵌套按钮,在点击按钮时会自动
提交
表单
<form action="/save"> <button>
提交
</button> </form> 原因分析:
表单
中的button按钮,没有指定 type="button",则默认是 submit 类型,所以当点击按钮时会
提交
表单
解决方案: 在 button 标签中添加 type="button" 属性 <form action="/save"> <button
button按钮无法
提交
表单
问题
发现与解决
前些天,我在用html制作登录框时遇到一个
问题
,form
表单
中的button不能
提交
表单
中的数据。 相信你知道,input的type="submit"有
提交
表单
的功能,当然,我们自己也可以给一个input的type="button"的按钮自定义点击事件以
提交
表单
。 在这里我不用submit而用自定义的button的原因是,submit是无条件
提交
表单
,而登录框需要对用...
form
表单
自动
提交
表单
问题
1、点击按钮,会默认
提交
表单
1)按钮加属性type="button"。默认type的值是submit 2)按钮的点击事件函数里加event.preventDefault();或者加return false;阻止默认行为 2、输入框按回车键,会默认
提交
表单
1)<form onsubmit="return false;"> 2)加一个隐藏输...
ASP
28,407
社区成员
356,948
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章