快帮看看!简单的向数据库添加数据的问题我都不能解决????
快帮看看!简单的向数据库添加数据的问题我都不能解决????我试向数据库添加数据:
test.asp:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="form1" method="post" action="testsave.asp">
<p>ss
<input name="name" type="text" id="name">
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form>
</body>
</html>
testsave.asp:
<!--#include file="conn.asp"-->
<%
dim rs
rs=Server.CreateObject("Adodb.Recordset")
sql="select * from test"
rs.open sql,conn,1,3
rs.addnew
rs("name")=Request("name")
rs.update
if not rs.eof then
%>
<table>
<tr>
<td><%=rs("name")%></td>
</tr>
</table>
<%
else
response.write"没有数据"
end if
conn.close
set conn=nothing
rs.close
set rs=nothing
%>
没有任何提示,出现空白页.