出现在同处的问题。
<!--#include file="conn.asp"-->
<%
'Trim()去除字符串首尾多余的空格
If Trim(Request("content"))="" Then
sorry()
Else
dim var1,var2,var3,var4
var1=Request("username")
var2=Request("E-mail")
var3=request("title")
var4=request("content")
strSQL = "INSERT INTO luyian(username,E-mail,title,content) Values(var1,var2,var3.var4)"
conn.Execute (strSQL)///。。。。。。。。。出错!!
good()
conn.Close
Set conn = Nothing
End If
%>
<% Sub sorry() %>
<html>
<head><LINK href="style.css" rel=stylesheet type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="style.css">
<title>输 入 有 错 </title>
</head>
<body>
<br><br><center><font size=4 color=red >对不起!请输入留言!</font><br>
<br><br><a href="javascript:history.go(-1)">返 回</a> <a href="javascript:self.close()">关闭窗口</a>
</center></body>
</html>
<%end sub%>
<%sub good()%>
<html>
<head>
<title></title>
</head>
<body>
<p align="center"><font color="#FF0000">谢谢您的留言!</font></p>
<p align="center"><a href="show.asp">查看留言</a></p>
</body>
</html>
<%end sub%>