无为兄,一个表单能不能实现两次提交阿,请看源码?

jsidiot 2001-12-11 09:20:34
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<% act=request("act")
'Response.Write act%>
<P> </P>

<form method=post name=yourform action="test2.asp?act=add" >
<% if act="add" then
name=request("yourname")
testname=split(name,",")
for i=0 to ubound(testname)-1
%>
<input type=text name=yourname value=<%=testname(i)%>>
<%next
end if%>
<input type=text name=yourname value="">

<input type=hidden name=yourname >
<input type=button name=yourbutton value="add" onclick="yourform.submit()">
</form>
</BODY>
</HTML>
我还要把它提交到数据库那
怎么提交那
提供一个思路把
感恩不尽
...全文
67 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
jsidiot 2001-12-11
  • 打赏
  • 举报
回复
谢谢
karma 2001-12-11
  • 打赏
  • 举报
回复
add the database code at the top:

<% act=request("act")
if act <> "" then
'save the data to the database
end if
%>
<P> </P>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧