用ASP开发一个在线考试程序(一)
来源:岁月联盟
时间:2003-04-15
员、学生或客户进行考试的组织是非常有用的。
关于这个应用程序
我们的应用程序中的第一个界面包含在index.asp 中,由一个注册页组成,其中有两个输入域,一个是用户名,另一
个是口令。非会员要想参加考试的话必须要注册。这一页是初始屏幕,为用户提供用户名和口令的输入框。
需要注意的是,这两个将要批准的会员域应该有客户机端的JavaScript 确认,以便不把它们作为空白域来传递。
if (theForm.username.value == "")
{
alert("Please enter the /"User Name/"");
theForm.username.focus();
return (false);
}
if (theForm.password.value == "")
{
alert("Please enter the /"Password/"");
theForm.password.focus();
return (false);
}
下一篇:用ASP建立一个简单的搜索引擎