大家帮看一下,是哪里出的问题!谢谢
为什么我这个实行他显示出的是else后的语句,但是我要填的都填上了,这个是什么原因!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>处理页面</title>
</head>
<% dim title,text,selec
title=request.Form("title")
text=request.Form("text")
if request.form("text")<>""then
title=request.Form("title")
text=request.Form("text")
dim conn,data,sql
data=Server.Mappath("title.mdb")'数据库的位置
set conn=server.CreateObject("ADODB.connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq="&data
sql="insert into title('title','text') valuess ('title','text')"
conn.execute(sql)%>
<% else
response.write ("重新输入")
end if
%>
<body>
</body>
</html>
问题点数:20、回复次数:2Top
1 楼hreoghost(Challenge oneself,break through limit!)回复于 2006-12-01 08:43:35 得分 0
sql="insert into title('title','text') values ('"&title&"','"&text&"')"Top
2 楼xiehuiqing(xiehuiqing)回复于 2006-12-01 09:19:01 得分 0
if request.form("text")<>""then :then前要空格吧
sql="insert into title('title','text') valuess ('title','text')"
应该是:
sql="insert into title(title,text) valuess ('"&title&"','"&text&"')"
Top




