asp 如何使用无组件上传多个图片呢? 谢谢 怎么循环得到呢?
怎么做呢?
<!--#include file= "upload_5xsoft.inc "-->
<body>
<%
set upload = new upload_5xsoft
set file=upload.file( "ad_pic ")
if file.fileSize> 0 or file.fileSize <2048 then
fileExt=lcase(right(file.filename,3))
if fileExt= "jpg " or fileExt= "gif " or fileExt= "png " or fileExt= "bmp " then
'session( "bookimg ") = file.FileName+ " "
file.saveAs Server.mappath( "/ "+file.FileName)
'response.Write "ok! "
ok = 1
else
ok = 0
response.Write( "上传类型或大小有错误 ")
end if
end if
set file=nothing
set upload=nothing
if ok then
'response.Redirect "bookok.asp "
response.Write( "广告发布成功 ")
end if
%>
<form action= " " method= "post " enctype= "multipart/form-data " name= "FrmAdd " onSubmit= "return doSubmit(this) ">
<table width= "92% " border= "0 " cellspacing= "0 " cellpadding= "2 ">
<tr>
<td width= "13% " align= "right "> 广告标题: </td>
<td> <input name= "ad_name " type= "text " style= "width:320px ">
<font color= "#CC0000 "> * </font> 小于50个中文字符 </td>
</tr>
<tr>
<td align= "right "> 图片: </td>
<td> <input name= "ad_pic " type= "file " id= "news_pic " style= "width:340px ">
图片在160*120px以下 </td>
</tr>
<tr>