红色警戒2哪三类兵:按用户名登陆后,才能投票的系统!
来源:百度文库 编辑:神马品牌网 时间:2024/04/27 18:39:45
请推荐给我!
首先需要连接到数据库,当用户登陆点击提交后对用户名进行匹对,匹对成功后将用户id保存到一个session里面,
<%
if session("id")<>"" then
response.redirect"index.asp"
else
response.write"对不起那没有进行登陆"
response.redirect"login.asp"
end if
%>