ASP传参失败?
A.asp:<!----------------------------------产品中心开始----------------------------------->
<form ID="form2" name="form2" method="post" action="">
<td wIDth="238" rowspan="3" valign="top">
<% Set rs = Server.CreateObject "ADODB.Recordset")
sql= "select * from product order by ID "
rs.open sql,conn,1,3 rs.movefirst %>
<%dim flaga flaga=rs("ID") %>
<%do while not rs.eof or rs.bof%>
<img src="<%=rs("photoadd")%>" width="129" height="81" border="0">
<%response.write " <a href ='productDetail.asp?flaga="&flaga&"' Target=_blank >详细信息</a>"%></img><%flaga=flaga+1%><%rs.movenext%><%loop%> <br>
</td></form>
b.asp
<!--#include file="conn.asp"-->
<%
dim flaga
flaga=request.form("flaga")
Set rs = Server.CreateObject("ADODB.Recordset")
sql= "select * from product"
rs.open sql,conn,1,1
rs.movefirst
%>
<%if not rs.eof or rs.bof then%>
<img src="<%=rs("photoadd")%>" width="500" height="300" border="0"></img>
<%response.Write(rs("productNameCH"))%>
<%end if%>
打开b.asp,每个连接显示的都是id=1的内容