<%
if request.form("handle")="pass" and (request.form("VoteType")="A" or request.form("VoteType")="B") then
'单选处理
if request.form("VoteType")="A" then
if isnumeric(request.form("VoteItem")) then
if session("IsVote")=true then
response.write("")
response.end
else
sql="update WW_VoteItem set VoteCourt=VoteCourt+1 where VoteItemID="&request.form("VoteItem")
'response.write sql
objconn.execute sql
if err.number<>0 then
response.write("")
response.end
else
session("IsVote")=true
response.write("")
response.end
end if
end if
end if
end if
if request.form("VoteType")="B" then
if request.form("VoteItem")<>"" then
if session("IsVote")=true then
response.write("")
response.end
else
sql="update WW_VoteItem set VoteCourt=VoteCourt+1 where VoteItemID in("&request.form("AllInfoID")&")"
'response.write sql
objconn.execute sql
if err.number<>0 then
response.write("")
response.end
else
session("IsVote")=true
response.write("")
response.end
end if
end if
end if
end if
end if
%>