关于Cookies的问题

错误类型:
Microsoft VBScript 运行时错误 (0x800A01B6)
/diaocha_jieguo.asp, 第 3 行

以下是程序代码:
---------------------------------------------------------------------

 1   
 2Voted=Response.Cookies("Voted")   
 3if Voted<>"Yes" then   
 4conn.execute ("update diaocha_wenti set shuzi=shuzi+1 where id="&request("rb"))   
 5conn.execute ("update diaocha_zhu set shuzi=shuzi+1 where id="&request("biaotiid"))   
 6  
 7'(注:投票完之后将Cookies值写回访问者硬盘)   
 8Response.Cookies("Voted") = "Yes"   
 9'(注:将Cookies值过期日设为一天)   
10Response.Cookies("Voted").Expires = DateAdd("D",1,date)   
11end if   

---------------------------------------------------------------

Voted=Response.Cookies("Voted")

==>

Voted=request.cookies("Voted")

Published At
Categories with Web编程
comments powered by Disqus