请教什么地方出错,谢谢。
Access,字段id,title,content;add.htm输入,addnews.asp处理:
add.htm:
<html>
<head>
<title>文章输入</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#CCCCCC" text="#000000">
<div align="center">
<p>文章输入</p>
<form name="form1" method="post" action="addnews.asp">
<table width="75%" border="1" cellspacing="0" cellpadding="0" height="147">
<tr>
<td width="14%">标题:</td>
<td width="86%">
<input type="text" name="title">
</td>
</tr>
<tr>
<td width="14%">内容:</td>
<td width="86%">
<textarea name="content" rows="5" cols="50" wrap="VIRTUAL"></textarea>
</td>
</tr>
<tr>
<td colspan="2" height="12">
<div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重写">
</div>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
addnews.asp:
<%
title=Request("title")
content=Request("content")
Set newconn=Server.CreateObject("ADODB.Connection")
DBPath=Server.MapPath("Mybook.mdb")
newconn.Open"Driver={Microsoft Access Driver (*.mdb)};DBQ="&DBPath
SQLcmd="Insert Into mytable(title,content)Values(""&title&"",""content"")"
newconn.Execute SQLcmd
newconn.Close
%>