按用户名登陆后,才能投票的系统!

来源:百度知道 编辑:UC知道 时间:2024/06/18 09:34:26
请推荐给我!

首先需要连接到数据库,当用户登陆点击提交后对用户名进行匹对,匹对成功后将用户id保存到一个session里面,
<%
if session("id")<>"" then
response.redirect"index.asp"
else
response.write"对不起那没有进行登陆"
response.redirect"login.asp"
end if
%>