第一页:
<form name="form1" action="cptj21.asp" method="post" enctype="multipart/form-data" >
<input type="file" name="file1" />
<input type="submit" class="yangshi" value="确 定" >
</form>
第二页
<!--#include file="upload_5xsoft.inc"-->
<%
dim upload,file
set upload=new upload_5xSoft
'upload.openProcesser=true
set file=upload.file("file1")
if file.filesize>0 then
file.saveAs Server.MapPath("../../img"&file.filename)
Response.Write("<script>alert('上传成功')</script>")
Session("wz")="../../img"&file.filename
Response.Write("<script>window.location='cptj22.asp'</script>")
set file=nothing
end if
set upload=nothing
%>