菜鸟提问:怎么用select case语句来取type的值?
login.asp页面
<table align=center bgcolor=#F7F7F7 cellpadding=0 cellspacing=0 class=font12 width="770">
<form name=loginform action=login_check.asp method=post onSubmit="return Verify();">
<tr>
<td height=36 valign=center background="#F7F7F7" class=tablebody1>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
<td height="27">
<div align="right">用 户 名: </div>
</td>
<td height="27">
<input name=txtyhm HEIGHT: 18px; WIDTH: 90px">
</td>
</tr>
<tr>
<td class=tablebody1 height=24>
<div align="right">密 码: </div>
</td>
<td>
<input name=txtkl HEIGHT: 18px; WIDTH: 90px" type=password>
</td>
</tr>
<tr>
<td class=tablebody1 height=24>
<div align="right">用户类型:</div>
</td>
<td>
<select name=type HEIGHT: 18px; WIDTH: 90px">
<option value="0" selected>超级用户</option>
<option value="1">录单员</option>
<option value="2">单证员</option>
<option value="3">跑单员</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class=tablebody1 height=35 width="100%">
<div align=center>
<input name=submit2 type=submit value=登录>
<input name=button22 onClick="window.location.href='register.asp'" type=button value=注册>
</div>
</td>
</tr>
</form>
</table>
<SCRIPT>
function Verify()
{
if (document.loginform.txtyhm.value == "")
{
alert("请输入用户名!");
document.loginform.txtyhm.focus();
return false;
}
if (document.loginform.txtkl.value == "")
{
alert("请输入密码!");
document.loginform.txtkl.focus();
return false;
}
return true;
}
</SCRIPT>
----------------------------------
login_check.asp页面
<%
response.write(request("txtyhm"))
response.write("<br>")
response.write(request("txtkl"))
response.write("<br>")
response.write(request("type"))
%>
问题是怎么用select case语句来取type的值?
通过表单提交到login_check.asp三个变量都通过数据库来存储的表userinfo(name,psw,type),要实现通过数据库来存取处理结果的话,怎么来实现?
在线等待,谢谢!