男主穿越到女尊的世界:按用户名登陆后,才能投票的系统!
来源:百度文库 编辑:中科新闻网 时间:2024/05/10 08:42:28
请推荐给我!
首先需要连接到数据库,当用户登陆点击提交后对用户名进行匹对,匹对成功后将用户id保存到一个session里面,
<%
if session("id")<>"" then
response.redirect"index.asp"
else
response.write"对不起那没有进行登陆"
response.redirect"login.asp"
end if
%>