<!--#include file="Head.asp"-->
<%
dim ProductName,id
function getip() '获得客户端IP
	getip=Request.ServerVariables("REMOTE_ADDR") 
end function
id=Request("id")
if id="" or not isnumeric(id) then
	Response.Write ("<script>alert('参数非法！');history.back();</script>")
	Response.End()
end if

SQL="Select * from ameav_Products where id="&id
Set rs=server.createobject("adodb.recordset")
rs.open SQL,conn,1,3
if rs.eof then
	Response.Write ("<script>alert('参数非法,您不是经过投票进入的本页！');history.back();</script>")
	Response.End()
else
	ProductName=rs("ProductName")
end if
rs.Close
Set rs=Nothing
%>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="765" height="200" align="center" valign="middle" bgcolor="#FFFFFF">您以ip(<%=getip()%>)的名义成功地为<font color="#FF0000"><%=ProductName%></font>投上了一票<br />
    感谢您的参与　<a href="main.asp">返回
	 <script language=javascript> 
var the_timeout = setTimeout("location='main.asp'",3000); 
</script> 
</a> 三秒自动返回主页
</td>
  </tr>
</table>
<!-- #include file="foot.asp" -->
