<!--#include file="conn.asp"-->
<% 
thisid=request("voteid")
if request.Cookies("vote"&thisid)="pubvote_"&thisid then 
	Response.Write("&back=已经参与过投票，谢谢")
	closedb
else
	response.Cookies("vote"&thisid)="pubvote_"&thisid
	response.Cookies("vote"&thisid).expires="2008/10/26"
	response.Cookies("vote"&thisid).domain=request.ServerVariables("SERVER_NAME")
    cs=split(request("mychoose"),",",-1,1)
	sql="select * from votepro where id="&thisid
	set rs=server.CreateObject("adodb.recordset")
	rs.open sql,conn,1,3
	for i=1 to 5
		if cs(i-1)="true" then 
			rs("cs_"&i&"_num")=rs("cs_"&i&"_num")+1			
		end if
	next
	rs.update
	closers
	closedb
	Response.Write("&back=投票已经送达，谢谢参与")
end if
%>