asp中的between语句求助
[b]if docid=request.querystring("id") and docid between 201 and 210[/b]then response.Write"
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var clf = prompt('请输入密码:','');
while (testV < 3) {
if (!clf)
history.go(-1);
if (clf == "haoshi") {
alert('密码正确!');
break;
}
testV+=1;
var clf =
prompt('密码错误!请重新输入:');
}
if (clf!="password" & testV ==3)
{alert('密码或用户名错误');window.close();}
}
document.write(password());
</SCRIPT>"
end if
加黑的地方我怀疑是不对的,请大家帮忙指点一下,谢谢!:) docid是长整形,自动编号的,您给看看,是不是格式哪儿不对呢,我刚学不久,谢谢:) <!--#include file=yt_conn.asp-->
<!--#include file=../char.asp-->
<%
session("docid")=request.QueryString("id")
if session("docid")<>"" and session("docid")<210 and session("docid")>201 then
response.redirect "doc_more1.asp"
else
response.Redirect"doc_more2.asp"
end if
%>
已经解决:handshake 学习中
↓↓↓↓
页:
[1]