select语句的问题,请教!

liyunqi 2004-08-06 08:17:41

1.htm
<html>
<body>
<form action="bxkxgsc.asp" method=POST id=form1 name=bxkxgsc>
<select id=select1 name=aa>
<% qkexe="select * from bxk5"
set conn=server.CreateObject ("ADODB.Connection")
Conn.Open "dsn=read;uid=read;pwd=2"
set rs1=Conn.Execute (qkexe)
do while not rs1.eof

Response.Write "<option selected>"&trim(rs1("bb"))&"</option>"&chr(13)
rs1.movenext
loop
rs1.close
set rs1=nothing
%>

</SELECT>
<input type="text" name="bb" size="30" maxlength="10" id=text4></input>

<input type="text" name="cc" size="30" maxlength="10" id=text4></input>
<INPUT type="submit" id=submit1 value="查询">


</form>


</body>
</html>
bxkxgsc.asp

<% dim aa=Request.Form ("aa")
bb=Request.Form ("bb")
cc=Request.Form ("cc")


set rs=server.CreateObject("adodb.recordset")
想问一下,这块应该怎么写???
rs.open session("strsql"),conn,1,1
%>
...全文
76 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
baisun 2004-08-06
  • 打赏
  • 举报
回复
session("strsql")存在的话 什么都不写
顺子 2004-08-06
  • 打赏
  • 举报
回复
同意樓上的
laihongbo524 2004-08-06
  • 打赏
  • 举报
回复
strsql="select * from table"
rs.open strsql,conn,1,1

28,409

社区成员

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

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