用VB和Microsoft FrontPage做企业网站中的一个问题,高手知道我这个学生啊。
我做的是一个简单的程序,就是
用户密码登陆系统
用户:
密码:
登陆 重置
下面是代码<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>帐号密码检查系统</title>
<title>帐号密码检查</title>
</head>
<body>
<p>
<h2><center>帐号密码检查系统</center></h2>
<hr>
<script language=VBScript>
<!--
function input_check()
if(namepass.user.value="")then
MsgBox"帐号不能为空,请重新输入",vbOKOnly,"输入错误"
namepass.user.focus()
input_check=false
exit function
end if
if(namepass.password.value="")then
MsgBox"密码不能为空,请输入",vbOKOnly,"输入错误"
namepass.password.focus()
input_check=false
exit function
end if
input_check=true
namepass.submit
end function
-->
</script>
<FORM action=c.asp method=post name=namepass>
帐号:<input name=user>
<p>密码:<input name=password type=password>
<hr>
<p><input id=button1 name=button1 onclick=input_check type=button value=提交>
<input id=reset1 name=reset1 type=reset value=重置>
</form>
</form>
</body>
</html>
现在可以用的是 : 只输入名字或者密码都不行,但随便输入名字和密码都可以进入
我想问的是在哪里添加代码,添加什么代码可以设置固定的名字和密码,
输入错误要提示,
还有, 我没有和数据库连接, 用的是INTENET服务器 , 是WIN XP
Microsoft FrontPage , 请问高手我该怎么办啊?