在线人数写法
然后编写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
- 上一篇:asp 文件上传[aspjpeg组件上传文件]
- 下一篇:判断用户是否注册