如何用拦截表单的方法上传图片?
(福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun)
<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]
相关文章
如何用FileSystemObject组件来做一个站内搜索?
如何用FileSystemObject组件来做一个站内搜索?...2006-11-11
最新评论