1994沪上大学投毒案:<!--#include file="conn.asp" -->和conn.asp什么意思?

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 03:10:03
<%
on error resume next
db="db/idcone7788.mdb"
set conn=server.createobject("adodb.connection")
dbpath=server.mappath(db)
conn.open"DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&dbpath
set rs =server.createobject("adodb.recordset")

function CloseDatabase
Conn.close
Set conn = Nothing
End Function

rs.open "admin",conn,1,1
if not rs.eof then
page_title=rs("title")
page_logo=rs("logo")
page_copying=rs("copying")
page_name=rs("net_name")
page_url=rs("url")
page_tel=rs("tel")
page_qq=rs("qq")
page_email=rs("email")
page_gg=rs("gg")
page_jmail=rs("jmail")
page_smtp=rs("smtp")
page_col=rs("col")
page_mail_body=rs("mail_body")
page_shop_html=rs("shop_html")
end if
rs.close
%>

<!--#include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%>--用户登录</title>
<LINK href="images/css_m.css" rel=stylesheet type=text/css>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">

<!--#include file="head.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="779" height="19" valign="bottom"><font color="#990000"> → </font>你当前位置:<a href="default.asp">首
页 </a>>>用户登录</td>
</tr>
<tr>
<td height="1" background="images/2.jpg"></td>
</tr>
</table>
<p> </p>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="images/custlogin.gif" width="255" height="51"></div></td>
</tr>
<tr>
<td><form name="form2" method="post" action="login.asp">
<table width="272" height="110" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td width="70"> </td>
<td width="202"> </td>
</tr>
<tr>
<td>用户名:</td>
<td><input class=inuptCN name="userid" type="text" id="userid" size="15"></td>
</tr>
<tr>
<td>密 码:</td>
<td><input class=inuptCN name="password" type="password" id="password" size="15"></td>
</tr>
<tr>
<td> </td>
<td><input name="Submit2" type="submit" value="登 录">
<input name="Submit3" type="button" value="重 来">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<p align="center"><a href="reg.asp">新用户注册</a>   </p>
<!--#include file="top.asp" -->

</body>
</html>

这个是ASP的连接调用,CONN是连接数据库的重要文件,里面有数据库的地址

把名为 conn.asp 的文件内容完整地插入到那个位置。

<!--#include file="conn.asp" -->是调用conn.asp文件

conn.asp就是一个名为conn的asp文件啦,一般conn是连接数据库的文件

conn是连接数据库的文件,你下载一下整站的程序,分析一下就什么都明白了,找到那个CONN一看就明白了。