怎样用DW做一个用户登录的ASP?

来源:百度知道 编辑:UC知道 时间:2024/05/08 01:56:24
我看了许多这方面的问题,都不如意.具体步骤应该是怎样的?请以实例说明.比如htm页面.ASP页面.数据库分别是怎样的?

1、判断部分
<script language="javascript">
<!--
function isok(theform)
{
if (theform.user_name.value.length<2 || theform.user_name.value.length>10)
{
alert("学生姓名请填写真实姓名!");
theform.user_name.focus();
return (false);
}
if (theform.password.value.length<3 || theform.password.value.length>10)
{
alert("密码最少要3位,最多10位! !");
theform.password.focus();
return (false);
}
if (theform.password_two.value=="")
{
alert("你还有确认密码没填呢!");
theform.password_two.focus();
return (false);
}

if (theform.password_two.value!=theform.password.value)
{
alert("两次密码怎么不一样!");
theform.password_two.focus();
return (false);
}

if (theform.userclass.value=="")
{
alert("你所在的专业班级还没填呢!");
theform.userclass.focus();
return