注册 登录
编程论坛 ASP技术论坛

含有动态文本框的表单提交问题

yjgzhlzh 发布于 2007-12-16 22:04, 681 次点击
第一个页面中有一个表单。表单中有一个文本框
<%   
i=0
While   ((Repeat1__numRows   <>   0)   AND   (NOT   rs1.EOF))   
i=i+1
%>
                    
                        <table   width="100%"   border="0"   cellpadding="0"   cellspacing="0">
                            <tr   class="main_gfont">
                                <td   width="50%"> <input   type="text"   name= <%=(rs1.Fields.Item("sudnub").Value)%>   Value= <%=(rs1.Fields.Item("sudnub").Value)%>   size="8"   height="19"   readonly   > </td>
                                    <td   width="50%"> <input   name=name <%=i%>   type="text"   Value= <%=(rs1.Fields.Item("name").Value)%>   size="8"   maxlength="10"   readonly   height="19"> </td>
                            </tr>
                        </table>
                        <%   
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs1.MoveNext()
Wend
%>
在这段代码中红色代码就是文本框代码部分,这个文本框是从数据库动态读取数据的,名称也是动态的,我现在提交这个表单,使用request.from的post方法。

我在第二个页面要调用第一个页面前面说的那个文本框的名称在sql语句中应该怎样来写代码?
  sql="select   *   from   dxk   where   sudnub=就在这个等号的后面我想以这个文本框的值作为查询条件,等号后面怎么来写代码?
1 回复
#2
yjgzhlzh2007-12-17 08:53
大家帮我解决下这个问题
大家帮我解决下上面说的这个问题
1