留言板问题--在用户登录时,提示用户名或密码不能为空的代码是什么

来源:百度知道 编辑:UC知道 时间:2024/05/10 13:26:55
我是用VBSCript语言做的。谢谢各位高手了!!
代码应该加在代码中的什么位置呀?谢谢了!!

if username="" then response.write "用户名不能为空"
if password="" then response.write "密码不能为空"

添加在获取用户名 密码以后就行了
不是有request.form("...")吗 写在那个后面就行了

<%
if session("AdminName") = "" then
response.Redirect "Login.asp"
end if
%>
<%
if session("AdminPass") = "" then
response.Redirect "Login.asp"
end if
%>