
asp缺少对象问题,拜托各位高手了
<html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册结果</title>
<!--#include file="db.inc.asp"-->
<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"> </td>
<td width="376"> </td>
<td width="200"> </td>
</tr>
<tr>
<td> </td>
<%
rst.open "select * from user where u_user='" & request.form("f_user")&"'",conn,1,1
if rst.recordcount>0 then
'如果存在这个用户名,对用户进行提示
response.write "用户名:" & request.form("f_user") & "已经被占用!请点击后退按钮返回上一页!"
response.end
else
'如果用户名不存在则写入数据
set rst10=conn.Execute("insert into user (u_ser.u_code) values (‘"& request.form("f_user") & "'.'"& requesr.form("f_code")&"')")
end if
%>
<td align="center" valign="middle"><img src="img/1.jpg" width="320" height="200" /><br>
<img src="img/2.jpg" width="320" height="200" /></td>
<td> </td>
</tr>
<tr>
<td height="154"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
拜托各位高手帮忙解决这个问题吧 展开
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册结果</title>
<!--#include file="db.inc.asp"-->
<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"> </td>
<td width="376"> </td>
<td width="200"> </td>
</tr>
<tr>
<td> </td>
<%
rst.open "select * from user where u_user='" & request.form("f_user")&"'",conn,1,1
if rst.recordcount>0 then
'如果存在这个用户名,对用户进行提示
response.write "用户名:" & request.form("f_user") & "已经被占用!请点击后退按钮返回上一页!"
response.end
else
'如果用户名不存在则写入数据
set rst10=conn.Execute("insert into user (u_ser.u_code) values (‘"& request.form("f_user") & "'.'"& requesr.form("f_code")&"')")
end if
%>
<td align="center" valign="middle"><img src="img/1.jpg" width="320" height="200" /><br>
<img src="img/2.jpg" width="320" height="200" /></td>
<td> </td>
</tr>
<tr>
<td height="154"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
拜托各位高手帮忙解决这个问题吧 展开
4个回答
展开全部
<!--#include file="db.inc.asp"-->
问题可能出在这个文件。
1.检查一下这个文件的路径是否正确。
2.尽量不要把文件名命名成*.asp的样子,db_inc.asp
3.可能的话,那这个文件发出来看看.
问题可能出在这个文件。
1.检查一下这个文件的路径是否正确。
2.尽量不要把文件名命名成*.asp的样子,db_inc.asp
3.可能的话,那这个文件发出来看看.
展开全部
应该是文件不全吧。这个文件没有办法单独运行的,没有定义数据库连接,怎么就直接链接了?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
什么提示错误
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
set rst10=conn.Execute("insert into user (u_ser,u_code) values ('"& request.form("f_user") & "','"& requesr.form("f_code")&"')")
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询