<!--#include file="conn.asp"-->
<%
Type1=Request.QueryString("Type")
if Type1="UP" and Request.Form("content")<>"" then
set rs=server.Createobject("ADODB.Recordset")
sql="select * from news"
rs.open sql,conn,1,3
rs.addnew
rs("content")=Request.Form("content")
rs.Update
Response.Redirect("test.asp")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="test.asp?Type=UP">
<textarea name="content" cols="50" rows="10" id="content"></textarea>
<br />
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>