帮我改一下关于ASP--Dreamweaver的代码错误

来源:百度知道 编辑:UC知道 时间:2024/06/27 14:44:01
(改第2个)
第一个文件connection.asp

<%
dim conn
set conn=server.CreateObject("adodb.connection")
conn.open("driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("liuyan.mdb"))
%>
-----------------------
第二个 register.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="connection.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>

修改结果:

帮我改一下关于ASP--Dreamweaver的代码错误
悬赏分:30 - 离问题结束还有 14 天 23 小时
(改第2个)
第一个文件connection.asp

<%
dim conn
set conn=server.CreateObject("adodb.connection")
conn.open("driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("liuyan.mdb"))
%>
-----------------------
第二个 register.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="connection.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Conten