我用的是风声ASP无组件上传图片,但路径无法写入数据表?
<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transiti...
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
</head>
<!--#include virtual="/Connections/conn.asp" -->
<!--#include virtual="/upload/UpLoadClass.asp" -->
<!--#include virtual="/top.asp" -->
<body>
<%
dim request2,sql,rst
set request2=New UpLoadClass
request2.Open()
rst.open sql,conn,1,1
sql="insert into 图片 (add,pname) values('"&request2.SavePath&request2.Form("strPhoto")&"','"&request2.Form("strName")&"')"
conn.execute sql
rst.close
set rst=nothing
set request2=nothing
%>
</body>
<!--#include virtual="/down.asp" -->
</html>
UpLoadClass.asp 风声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>
</head>
<!--#include virtual="/Connections/conn.asp" -->
<!--#include virtual="/upload/UpLoadClass.asp" -->
<!--#include virtual="/top.asp" -->
<body>
<%
dim request2,sql,rst
set request2=New UpLoadClass
request2.Open()
rst.open sql,conn,1,1
sql="insert into 图片 (add,pname) values('"&request2.SavePath&request2.Form("strPhoto")&"','"&request2.Form("strName")&"')"
conn.execute sql
rst.close
set rst=nothing
set request2=nothing
%>
</body>
<!--#include virtual="/down.asp" -->
</html>
UpLoadClass.asp 风声ASP无组件文件 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询