这段代码该如何修改啊???
<Script Language="VBScript"><!--
sub fsubmit()
if trim(form1.news_head.value)=Empty then
msgbox "请输入标题!",48
Exit sub
End if
if trim(form1.news_body.value)=Empty then
msgbox "请输入内容!",48
Exit sub
End if
if trim(form1.news_pic.value)<>"" then
form1.isp.value="1"
End if
form1.submit
End sub
-->
</Script>
如何将
sub fsubmit()
...
end sub
修改为:
function fsubmit()
return true
end function
呢?
如果出错的话就return false;
目的就是让验证起到作用 !!