中国网管论坛's Archiver

网者 发表于 2006-11-14 17:36

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
加黑的地方我怀疑是不对的,请大家帮忙指点一下,谢谢!:)

网者 发表于 2006-11-14 21:01

docid是长整形,自动编号的,您给看看,是不是格式哪儿不对呢,我刚学不久,谢谢:)

网者 发表于 2006-11-15 16:25

<!--#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

BBQhy 发表于 2006-11-20 15:05

学习中
↓↓↓↓

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com