数据库中的数据会出现乱麻?
为什么添加到数据库中的数据会出现乱麻啊?
下面就是添加数据到数据库的代码:
[color=red]<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.Buffer = True
'Make sure this page is not cached
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
%>
<!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>
<!--#include file="conn.asp" -->
<%
wname=request.Form("tname")
sex=request.Form("tsex")
mobile=request.Form("tmobile")
tel=request.Form("ttel")
address=request.Form("taddress")
QQ=request.Form("tqq")
mail=request.Form("tmail")
set rs=server.CreateObject("adodb.recordset")
sql="select * from listname"
rs.open sql,conn,1,3
rs.addnew
rs("name")=wname
rs("sex")=sex
rs("mobile")=mobile
rs("tel")=tel
rs("address")=address
rs("QQ")=QQ
rs("E-mail")=mail
rs.update
%>
</head>
<body>
</body>
</html>
[/color]