德国劳士领peek板:请各位高手帮我看看这段代码好吗?有什么问题?请指点!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 17:20:01
<!--#include file="Connections/Conn3.asp" -->
<%
key=Request.Form("key")
id=Request.Form("select6")
select case id
case 1
table="请选择"
case 2
table="新闻标题"
case 3
table="新闻内容"
case 4
table="发布时间"
end select
sql="select*from db_news where content like'%'&key&'%'and style='"&table&"'"
rs.open sql,com
%>
<table width="757" height="50" border="0" cellpadding="0" cellspacing="0">
<form method="post" action="Search2.asp" name="search">
<tr>
<td width="51"><span class="style8"><img src="image/fdj.gif" width="50" height="50" align="absmiddle"></span></td>
<td width="83"><span class="style8"><img src="image/ss1.gif" width="82" height="21" align="absmiddle"></span></td>
<td width="623"><div align="left"><span class="style8">      请输入关键字:
<input name="key" type="text" class="style8" id="key" onBlur="MM_validateForm('keyword','','R');return document.MM_returnValue" maxlength="50">
  
<select name="select6" onChange="MM_validateForm('keyword','','R');return document.MM_returnValue">
<option value="1" selected>请选择</option>
<option value="2">新闻标题</option>
<option value="3">新闻内容</option>
<option value="4">发布时间</option>
</select>
  
<input name="sousuo" type="submit" id="sousuo" value="搜索">
  
<input name="quxiao" type="reset" id="quxiao" value="取消">
</span></div></td>
</tr></form>
</table>
</div>
<div align="center">
后续
我想做站内搜索,不知道程序是不是有问题?

你想解决什么问题,或者说你觉得这段代码引起了什么错误?