您的位置:首页 > 网络编程 > ASP

拦截表单的另外一种写法

日期:2006-04-18 04:03:00 点击: 来自: 作者:

  <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>   
More..素材图片 Picture Navigation
  •  彩云之南
  • 《超宽屏壁纸》带你体验大自然的魅力
  • 18张最美丽的北京风光 1600X1200 像素
  • 2ADVANCED 2006 壁纸系列
相关链接 Correlation Link
ASP热门 Class Hot
ASP推荐 Class Commend
版权所有:中国网站资源 2005- 未经授权禁止复制或建立镜像 This Site Tech:XHTML+DIV+CSS+Javascript
CopyRight ® 2005- www.Chinaddv.com online services. all rights reserved. ICP06016627
Optimized to 1024x768 to Firefox,Netscape,Opera,MS-IE6+.