<%
Dim Upload,Upfile
Set Upload = Server.CreateObject("Persits.Upload")
Response.Write(Upload.Form("text1"))
Set Upload = nothing
%>结果无法取到表单text1的值,加入Upload.Save后就正常了:
<%
Dim Upload,Upfile
Set Upload = Server.CreateObject("Persits.Upload")
Upload.Save
Response.Write(Upload.Form("text1"))
Set Upload = nothing
%>是不是在调用Form方法前必须先得调用Save方法?网上搜索了一番,最终在CSDN上看到了一句话:We must call Upload.Save or SaveVirtual before we can use Upload.Form!,在ASPUpload安装文件夹中搜索此句,位于Samples\02_simple\UploadScript3.asp第16行,此行为一注释语句。
评论(0)
暂无评论。