攔截表單的另外一種寫(xiě)法
發(fā)表時(shí)間:2023-08-06 來(lái)源:明輝站整理相關(guān)軟件相關(guān)文章人氣:
[摘要]<script language="vbs">sub send_onclick dim f set f=document.ff ...
<script language="vbs">
sub send_onclick
dim f
set f=document.ff
photo=trim(f.photo.value)
if photo="" then
msgbox "沒(méi)有照片,怎么傳! ",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=開(kāi)始上傳 name=send>
</form>