这个是1.asp
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {color: #00cc33}
.STYLE2 { color: #00cc33;
font-weight: bold;
}
.STYLE3 {color: #00cc33}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#0099FF">
<td align="center" valign="top"><table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="770" align="center" valign="top"><table width="610" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#E2F3E3">
<td width="610" height="25" align="center" valign="top"><table width="610" border="0" cellpadding="0" cellspacing="0" bgcolor="#E2F3E3">
<tr>
<td width="610" height="35" align="center" valign="middle"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<%
sq2="select * from news where nw_check='0' order by nw_id DESC"
rs.Open sq2,conn,1
page=cint(request("page"))
rs.Pagesize=20
if page="" or page=0 then page=1
If page>rs.Pagecount Then Page=rs.Pagecount
'当内容为空也可正常显示,不加此则报错
if not rs.eof then
rs.Absolutepage=page
end if
%>
<tr>
<form action="1.asp" method="post" name="form1" id="form1" >
<td height="30" align="center" valign="middle" class="blue9"> 共<%=rs.recordcount%>篇文章 <%=rs.pagesize%>篇/每页 共<%=rs.pagecount%>页
当前第<%=page%>页
<%if page<>1 then%>
<a href="1.asp?page=1" class="blue9">第一页</a>|<a href="1.asp?page=<%=page-1%>" class="blue9">上一页</a>
<%
else
Response.Write("第一页 | 上一页")
End If
If page<>rs.Pagecount Then
%>
|<a href="1.asp?page=<%=page+1%>" class="blue9">下一页</a>|<a href="1.asp?page=<%=rs.pagecount%>" class="blue9">最后一页</a>
<%
else
Response.Write("下一页 | 最后一页")
end if
%>
<input name="page2" type="text" class="form1" id="page2" value="<%=page%>" size="3" maxlength="5" />
<input name="Submit2" type="submit" class="form1" value="Goto" />
</td>
</form>
</tr>
</table></td>
</tr>
<tr>
<td width="610" align="center" valign="top"><table width="531" border="1" cellpadding="0" cellspacing="1" bordercolor="#FF8c40" bgcolor="#E2F3E3">
<tr bgcolor="#304D7C" class="105" >
<td width="100" height="20" align="center" bgcolor="#E2F3E3"><div align="center"><font color="#FFFFFF"><strong> </strong></font><strong><span class="STYLE3">文章编号</span></strong></div></td>
<td width="209" height="20" align="center" valign="middle" bgcolor="#E2F3E3"><font color="#FFFFFF"><strong> </strong></font><strong><span class="STYLE3">新闻标题</span></strong></td>
<td width="210" align="center" valign="middle" bgcolor="#E2F3E3"><strong><span class="STYLE3">新闻审核</span></strong></td>
</tr>
<%
for i=1 to rs.pagesize
if not rs.eof then
%>
<tr bgcolor="#E2F3E3" class="blue9">
<form id="form2" name="form2" method="post" action="2.asp">
<td width="50" height="20" align="center" class="black9"><input name="nw_id" type="hidden" value="<%=rs("nw_id")%>"/><%=rs("nw_id")%>
</td>
<td width="209" height="20" align="center" valign="middle"><a href="read1.asp?id=<%=rs("nw_id")%>" target="_blank" class="blue9"><%=rs("nw_biaoti")%></a></td>
<td width="210" height="20" align="center" valign="middle">
<label>
<input name="nw_check" type="radio" value="0" checked="checked" />
</label>
未审核
<label>
<input type="radio" name="nw_check" value="1" />
</label>
审核
<label>
<input type="submit" name="Submit3" value="提交" />
</label>
</td>
</form>
</tr>
<%
rs.movenext
end if
next
%>
</table>
</td>
</tr>
<tr>
<td width="610" height="40" align="center" valign="middle"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center" valign="middle"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form action="1.asp" method="post" name="form1" id="form1" >
<td height="30" align="center" valign="middle" class="blue9"> 共<%=rs.recordcount%>篇文章 <%=rs.pagesize%>篇/每页 共<%=rs.pagecount%>页 当前第<%=page%>页
<%if page<>1 then%>
<a href="1.asp?page=1" class="blue9">第一页</a>|<a href="1.asp?page=<%=page-1%>" class="blue9">上一页</a>
<%
else
Response.Write("第一页 | 上一页")
End If
If page<>rs.Pagecount Then
%>
|<a href="1.asp?page=<%=page+1%>" class="blue9">下一页</a>|<a href="1.asp?page=<%=rs.pagecount%>" class="blue9">最后一页</a>
<%
else
Response.Write("上一页 | 最后一页")
end if
%>
<input name="page" type="text" class="form1" id="page" value="<%=page%>" size="3" maxlength="5" />
<input name="Submit" type="submit" class="form1" value="Goto" />
</td>
</form>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="770" height="25" align="center" valign="middle" bgcolor="#E2F3E3" class="white105"><span class="STYLE1"><font size="2" class="unnamed1"></font></span></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
这个没问题,可以得到请求的字段
2.asp搞不定,不能插入数据到数据库
这里是2.asp
<!--#include file="conn.asp"-->
<%
nw_id=request.form("nw_id")
nw_check=request.form("nw_check")
'response.Write nw_id & "," & nw_check
sql="insert into news("nw_check") values ('"& nw_check &"') where nw_id="& nw_id &""
conn.execute sql
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻添加成功</title>
<link href="css/css1.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"> </td>
</tr>
</table>
<font color="#FF0000"></font>
</body>
</html>
<% conn.close
set conn=nothing
%>
我不知道2.asp有什么问题,请教