龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

在线人数写法

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:
在线人数写法

然后编写count.asp
<%
user=request.cookies("21bbsusername")
totaluser=application("user")
if instr(totaluser,user)=0 then
application.lock
application("user")=totaluser&";"&user
application.unlock
end if
%>
<html>
<head>
<meta http-equiv="refresh" content="2">
</head>
<body>
</body>
</html>
最后显示在线人数。
user=split(application("user"),";")
num=ubound(user)
response.write num


精彩图集

赞助商链接