初学ASP+VBscript
下面一段代码,运行后,居然什么反应也没有.
请各位老师帮看看,是不是哪错了?
<script language="vbscript">
sub button1_onClick
if form1.user_name.value="" or form1.user_psd.value="" then
msgbox "请输入用户名及密码!",64,"提示"
else
msgbox "已经输入了用户名及密码!",64,"提示"
End if
end sub
</script>
------解决方案--------------------
客户端的?建议放弃,改学javascript, VBscript只是IE only,浏览器客户端编程基本是javascript一统江山.
------解决方案--------------------
前台最好用JS来写
<form name="form1" >
<input name="user_name" />
<input name="user_psd" />
<input type="button" value="button1" id="button1" />
</form>
<script language="vbscript">
sub button1_onClick
if form1.user_name.value="" or form1.user_psd.value="" then
msgbox "请输入用户名及密码!",64,"提示"
else
msgbox "已经输入了用户名及密码!",64,"提示"
End if
end sub
</script>