您的位置:首页 > 编程语言 > ASP

ASPUpload文件上传组件的用法

2008-01-25 13:41 501 查看
upload.htm
<html>
<body>
<h3>文件上传演示</h3>
<form method="post" enctype="multipart/form-data" action="upload.asp">
<input type="file" size="40" name="file1"><br>
<input type="file" size="40" name="file2"><br>
<input type="file" size="40" name="file3"><br>
<input type=submit value="上传">
</form>
</body>
</html>
upload.asp
<html>
<body>
<%
set upload = server.createobject("persits.upload")
count = upload.save(server.mappath("/"))
response.write(count & " 文件已上传到 " & server.mappath("/"))
%>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: