注册 登录
编程论坛 ASP技术论坛

求教各位前辈 自己是在看不懂。。。。。

wrz1788 发布于 2010-10-08 17:58, 486 次点击
<!-- #include file="db.inc.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册结果</title>
<style type="text/css">
<!-
body {
margin-top: 0px;
margin-bottom: 0px;
background-image: url();
background-repeat: no-repeat;
}
-->
</style></head>
<body>
<table width="800" border="0" align="center" cellspacing="0">
<tr>
<td width="218" height="72">&nbsp;</td>
<td width="376">&nbsp;</td>
<td width="200">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center" valign="middle">
<%
set rst=server.CreateObject("ADODB.recordset")
set rst1=conn.Execute("insert into user (u_user,u_code) values
('" & request.Form("f_user") & "','" & request.form("f_code") & "')")
%>
<img src="img/zcsb.jpg" width="355" height="240" /><br>
<img src="img/zccg.jpg" width="357" height="229" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="154">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

我是按视频上的输入的啊  没差别的  怎么我的事无法显示啊

错误类型:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/fif/result.asp, line 28, column 62
set rst1=conn.Execute("insert into user (u_user,u_code) values
-------------------------------------------------------------^

28行就是  set rst1那
7 回复
#2
wrz17882010-10-08 17:59
自己看了一天了  不知道错在哪里。。。。。。。。。。
#3
madpbpl2010-10-08 19:29
set rst1=conn.Execute("insert into [user] (u_user,u_code) values
('" & request.Form("f_user") & "','" & request.form("f_code") & "')")
关键字需要加“[]”
#4
yms1232010-10-08 20:59
未结束的字符串常量
#5
wangjy5002010-10-08 22:14
set rst=server.CreateObject("ADODB.recordset")
set rst1=conn
是不是这里的事?
#6
wrz17882010-10-09 10:29
先谢谢大家了 试着假了 [ 还是不行。。。。。。  我自己再看看
#7
hams2010-10-09 11:53
set rst1=conn.Execute("insert into user (u_user,u_code) values
('" & request.Form("f_user") & "','" & request.form("f_code") & "')")
不要断行
#8
wrz17882010-10-09 12:59
我的天啊 终于解决了 谢谢大家了  确实不能断行 而且我的文件夹权限没设置成完全控制  现在好了 谢谢
1