请各位朋友帮忙检查一下我那里出错了!急急急急急!
<!--#include file= "conn.asp "-->
<%
mhdz=request( "mhdz ")
set rs=server.createobject( "adodb.recordset ")
sql= "select * from bbs1 where mhdz= ' "& mhdz & " ' order by id desc "
rs.open sql,conn,1
%>
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 系统后台管理页面 </title>
<script language= "JavaScript ">
<!--
function test(){
if (document.form2.page.value== " " || isNaN(document.form2.page.value)) {
alert( "输入页数必须为数值型 ");
document.form2.page.focus();
return false;
}
return true;
}
// -->
</script>
<script>
function del () //用于判断记录有没有选中的函数
{
var flag=true;
var temp= " ";
var tmp;
if((document.form1.answer.length+ " ")== "undefined ") {tmp=1}else{tmp=document.form1.answer.length}
if (tmp==1){
if (document.form1.answer.checked){
flag=false;
temp=document.form1.answer.value
}
}else{
for (i=0;i <document.form1.answer.length;i++) {
if (document.form1.answer[i].checked){
if (temp== " ")
{
flag=false;
temp=document.form1.answer[i].value
}else{
flag=false;
temp = temp + ", "+ document.form1.answer[i].value
}
}
}
}
if (flag){ alert( "对不起,你还没有选择! ")}
else
{ name=document.form1.name.value
//alert(name)
if (confirm( "确实要删除? ")){
window.location= "delnews.asp?id= " + temp;
}
}
return !flag;
}
</script>
</head>
<body>
<script language=Javascript>
function checkall(all)//用于判断全选记录的函数
{
var a = document.getElementsByName( "answer ");
for (var i=0; i <a.length; i++) a[i].checked = all.checked;
}
</script>
<table width= "768 " border= "0 " &