标题:搜索成功后的一个问题
只看楼主
kgdipbyve
Rank: 2
等 级:论坛游民
帖 子:346
专家分:35
注 册:2008-5-4
结帖率:92.31%
 问题点数:0 回复次数:1 
搜索成功后的一个问题
_________________                    ________
|_______________|  ⊙ 新闻   ○ 产品 |_搜索_|
  这里搜索成功后,会跳转新闻或产品的页面去应该怎么做?


<!--#include file="inc/conn.asp"-->
<%
set rsb=server.CreateObject("adodb.recordset")
if request("title")="anlie" then
sqlb="select * from Products where title='"&request.form("title1")&"'"
else
sqlb="select * from news where title='"&request.form("title1")&"'"
end if
rsb.open sqlb,conn,1,1
if rsb.eof then
Response.Write"<script>alert('对不起,没有相关资料');window.location='index.asp'</script>"
response.End()
else
while not rsb.eof
%>

<table width="982" height="65" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><%=rsb("contnet")%></td>
    <td></td>
  </tr>
</table>
<%
rsb.movenext
wend
end if
rsb.close
set rsb=nothing
%>
搜索更多相关主题的帖子: 搜索 
2008-07-28 16:32
octillion
Rank: 1
等 级:新手上路
帖 子:195
专家分:0
注 册:2008-7-24
得分:0 
Response.Redirect theUrl
2008-07-28 16:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-225586-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.392051 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved