asp中连接access数据库怎么配置啊,急!

来源:百度知道 编辑:UC知道 时间:2024/06/17 17:37:24
我这写了个很小的asp图片上传程序
一个index.asp文件表单页面
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>asp测试</title>
</head>

<body>
<table align="center" background="image/shan.jpg" width="1000" height="625" cellpadding="0" cellspacing="0" border="0">
<tr height="150">
<td> </td>
</tr>
<tr height="50">
<td width="20%"> </td>
<td width="60%"><form method="post" action="process.asp" enctype="multipart/form-data">
<table cellpadding="0" cellspacing="

DBPath=Server.MapPath(DataBase/Images.mdb") 这里少了一个双引号,不知道是你贴漏了还是没写上去

DBPath=Server.MapPath("DataBase/Images.mdb")

还有name=request("image_name") 这个不能用,因为你同二进制方式发送数据,在接收页不能用request获取表单数据,否则会出错

利用数据库直接存取图片不好,建议用组件上传至指定文件夹,图片保存在文件夹中,图片其他相关信息保存在数据库中。

谁说request不能接收参数的?应该是代码的问题 而且你基本没错误判断 可能不出错么