注册页面问题!!!!!!!!!!!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=db.inc.asp-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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"> </td>
<td width="376"> </td>
<td width="200"> </td>
</tr>
<tr>
<td> </td>
<td align="center" valign="middle"><img src="../614/images/logo.jpg" width="128" height="128" /><br>
<%
set rst=server.CreateObject("adodb.recordset")
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 rst1=conn.execute("insert into user(u_user,u_code) values('"&request.Form("f_user")&"','"&request.form("f_code")&"')")
end if
%>
<img src="../614/images/Xbutton27.jpg" width="128" height="128" /></td>
<td> </td>
</tr>
<tr>
<td height="154"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
运行结果:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
/lx/dw/616/db.inc.asp,行 4
db.inc.asp中的内容
<%
set conn=server.CreateObject("ADODB.Connection")
conn.open "DSN=fifasp;UID=admin;PWD=;"
%>
fifasp我已经驱动了