多条纪录的问题?

ccwj 2001-03-20 11:23:00
在TABLE中显示了多条服务器端数据记录,为了能够编辑这些记录,在所有表格中加入了TEXT,但此时我该采用什么方法发送数据?以及如何接受数据,并更新数据库中的对应数据?
能否赐教一些类似的源码?谢谢!!
...全文
98 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
amay 2001-03-20
  • 打赏
  • 举报
回复
====
'这是我已测试过的源代码,并且已伊妹儿给wujun了。
=====C端:
<BODY>
测试 Test!
<p>
<font color=blue><%=tmp%></font>
<font color=red> <%=iColValue%> </font>

<table name="tab">

<form method ="post" name="frmForm1" id="frmForm1" action="RecTextValue.asp">
<input type="text" name="txt" value="初赋值如下所示:">
<%
Response.Write ("<tr><td>")
For nLoop=0 to 9
Response.Write ("<br>行" & nLoop & "<input type='text' size='10' name='Col" & nLoop & "' value='"& nLoop &"'>")
Response.Write ("<input type='reset' name='btnReset' value='重写'> ")
Next
Response.Write ("</tr></td>")
%>
<tr><td>
<input type='submit' name ='btn' value='提 交' >

</tr></td>
</tr></td>

</form>

<P> </P>

</BODY>

======== S端:
<%
Dim iColValue
Dim nLoop
Dim sSplit
sSplit="::"
iColValue=""
Dim iName
For nLoop=0 to 9
iName = "Col" & nLoop
iColValue =iColValue & sSplit & Request(""& iName &"")

Next
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
改变的值串为:
<br>
<%=iColValue%>
<p>
<p>

<P> </P>

</BODY>
</HTML>

==========
ccwj 2001-03-20
  • 打赏
  • 举报
回复
bibu,能说的详细一些吗?能给点例子吗?
bihu 2001-03-20
  • 打赏
  • 举报
回复
用form来接受text传递的参数
ccwj 2001-03-20
  • 打赏
  • 举报
回复
大虾们,我在等着呢!!

28,405

社区成员

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

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