asp源码 上传图片 在线等 帮看看哪写错啦 传不上去

来源:百度知道 编辑:UC知道 时间:2024/06/14 11:37:20
<!--#include file="data_setup.asp" -->

<!--#include FILE="upload_5xsoft.inc"-->
<html>
<head>
<title>文件上传</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body>
<br>文件上传状态表<hr size=1 noshadow width=300 align=left><br><br>
<%
dim upload,file,formName,formPath,iCount
set upload=new upload_5xSoft ''建立上传对象

response.write upload.Version&"<br><br>" ''显示上传类的版本

if upload.form("filepath")="" then ''得到上传目录
HtmEnd "请输入要上传至的目录!"
set upload=nothing
response.end
else
formPath=upload.form("filepath")
''在目录后加(/)
if right(formPath,1)<>"/" then formPath=formPath&"/"
end if

iCount=0
fo

如果你用的是netbox进行调试,那么直接调用原版upload_5xsoft.inc自然会出现这种错误提示。只要把upload_5xsoft.inc里的
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>...</script>语句改为<% ...%>应该就可以了!

你看看这个帖子对你有帮助没
http://cache.baidu.com/c?m=9d78d513d99c1afe18b0d5235950c0666810d0226d978b5739c3933984125d563616f4cd25356606c4c40c7070dc5e2ce9e73702207326a0ecbe9f3baaace6293888563e721e914062801bac9f15318660ce55b3e95fa5adf1418eb394d2875244ca245524dda59c5a774e9d25b74826e3d1c8154a4213b8e73466f85a733e985716a1478eba743159&p=8b2a911284934ea952b2dd3f5f4b&user=baidu