ASP会员搜索功能 奖80分

来源:百度知道 编辑:UC知道 时间:2024/09/28 15:55:09
如何在同一页中实现会员搜索与显示搜索结果
<form name="frm" method="post" action="?Action=search">
<tr>
<td width="20%" align="center">输入用户QQ:</td>
<td width="32%"><input name="sqq" type="text" id="qq" size="20" /></td>
<td width="48%" class="STYLE16" >
<div align="left">
<input type="submit" name="button" id="button" value="立即查找">
</div></td>
</tr>
</form>

这个是搜索的,但是不知道如何把结果显示出来

建立access的数据库news,还有表news,表的字段(id,title),id唯一,输入数据保存,用下面代码可查询,可分页
-----------------------下面保存为search.asp--------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件</title>
</head>
<body bgcolor="#ffffff">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<script>
function btn_ck_bh_Click()
{
var cx = document.form1.cxsj.value;
form1.action ="search.asp?cx="+cx;
}
</script>
<table border="1" cellspacing="0" bgcolor="#F0F8FF" bordercolorlight="#4DA6FF" bordercolordark="#ECF5FF" width="88%" style="word-break:break-all">
<tr>
<td width="778" align="center" colspan="7">
<form me