如何用攔截表單的方法上傳圖片?
<script language="vbs">
sub send_onclick
dim f
set f=document.ff
photo=trim(f.photo.value)
if photo="" then
msgbox "嘻嘻,還沒照片呢!",64 ,"上傳"
f.photo.focus
exit sub
end if
f.submit
end sub
sub retu_onclick
history.back
end sub
</script>
<form method=POST action=saveedit.asp name=ff enctype=multipart/form-data>
<input type=file name=photo>
<input type=button value=開始上傳 name=send>
</form>
[1]
相關(guān)文章
如何計(jì)算下載一個(gè)文件需要多長(zhǎng)時(shí)間?
如何計(jì)算下載一個(gè)文件需要多長(zhǎng)時(shí)間?...2006-11-11如何用FileSystemObject組件來(lái)做一個(gè)站內(nèi)搜索?
如何用FileSystemObject組件來(lái)做一個(gè)站內(nèi)搜索?...2006-11-11