为什么总显示缺少标识符
<!--#includefile="conn.asp"--><!--把conn.asp文件包含到页面中--><%setrst=server.createobject("a...
<!--#include file="conn.asp"--> <!-- 把conn.asp文件包含到页面中 -->
<%
set rst=server.createobject("adodb.recordset")
rst.open "select * from book",conn,1,3
rst.addnew
rst.("name")=request.form("u_name")
rst.("email")=request.form("u_email")
rst.("content")=request.form("u_content")
rst.update
rst.close
' name=request.form("name")
' email=request.form("email")
' content=request.form("content")
' exec="insert into book(name,email,content)values('name','email','content')"
' conn.execute exec
%>
<!-- 写入表单 -->
<%
inf="select * from book"
rst.open inf,conn,1,1
rst.pagesize=6
pagecount=rst.pagecount
page=int(request.querystring("page"))
if page<=0 then page=1
if request.querystring("page")="" then
page=1
end if
rst.absolutepage=page
%>
<!-- 设置分页 每页有6条内容 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
rst.open "select * from book",conn,1,1
for i=0 to rst.fields.count-1
%>
<table width="933" height="79" border="1" align="center">
<tr>
<td width="199" height="21"><%=rst.fields(i).("name")%><%=rst("data")%></td>
<td width="718"><%=rst.fields(i).("email")%></td>
</tr>
<tr>
<td colspan="2" valign="top"><%=rst.fields(i).("content")%></td>
</tr>
</table>
<%next%>
<%
rst.close
set rst=nothing
conn.close
set conn=nothing
%>
<form id="form1" name="form1" method="post" action="">
<table width="939" height="195" border="1" align="center">
<tr>
<td width="229" height="25">姓名:
<label>
<input name="u_name" type="text" id="u_name" />
</label></td>
<td width="694">邮箱:
<label>
<input name="u_email" type="text" id="u_email" />
</label></td>
</tr>
<tr>
<td colspan="2" align="center"><textarea name="u_content" cols="130" rows="10" id="u_content"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" />
</label></td>
</tr>
</table>
</form>
</body>
</html>
打开就显示
错误类型:
Microsoft VBScript 编译器错误 (0x800A03F2)
缺少标识符
/liuyan.asp, line 6, column 4
rst.("name")=request.form("u_name")
---^ 展开
<%
set rst=server.createobject("adodb.recordset")
rst.open "select * from book",conn,1,3
rst.addnew
rst.("name")=request.form("u_name")
rst.("email")=request.form("u_email")
rst.("content")=request.form("u_content")
rst.update
rst.close
' name=request.form("name")
' email=request.form("email")
' content=request.form("content")
' exec="insert into book(name,email,content)values('name','email','content')"
' conn.execute exec
%>
<!-- 写入表单 -->
<%
inf="select * from book"
rst.open inf,conn,1,1
rst.pagesize=6
pagecount=rst.pagecount
page=int(request.querystring("page"))
if page<=0 then page=1
if request.querystring("page")="" then
page=1
end if
rst.absolutepage=page
%>
<!-- 设置分页 每页有6条内容 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
rst.open "select * from book",conn,1,1
for i=0 to rst.fields.count-1
%>
<table width="933" height="79" border="1" align="center">
<tr>
<td width="199" height="21"><%=rst.fields(i).("name")%><%=rst("data")%></td>
<td width="718"><%=rst.fields(i).("email")%></td>
</tr>
<tr>
<td colspan="2" valign="top"><%=rst.fields(i).("content")%></td>
</tr>
</table>
<%next%>
<%
rst.close
set rst=nothing
conn.close
set conn=nothing
%>
<form id="form1" name="form1" method="post" action="">
<table width="939" height="195" border="1" align="center">
<tr>
<td width="229" height="25">姓名:
<label>
<input name="u_name" type="text" id="u_name" />
</label></td>
<td width="694">邮箱:
<label>
<input name="u_email" type="text" id="u_email" />
</label></td>
</tr>
<tr>
<td colspan="2" align="center"><textarea name="u_content" cols="130" rows="10" id="u_content"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" />
</label></td>
</tr>
</table>
</form>
</body>
</html>
打开就显示
错误类型:
Microsoft VBScript 编译器错误 (0x800A03F2)
缺少标识符
/liuyan.asp, line 6, column 4
rst.("name")=request.form("u_name")
---^ 展开
程经理
2025-01-01 广告
2025-01-01 广告
90年代,我国工业标识类行业发展迅猛,标识技术也得到了不断发展和创新,但国产产品在线号机、标牌机方面还处于空白阶段,标签机也落后于国外知名品牌。顺应时代潮流,硕方品牌在2005年于北京创立,以自主研发、产品创新作为企业发展的内在动力,专注于...
点击进入详情页
本回答由程经理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询