小弟写一个投票系码,可老是出错
Microsoft VBScript 运行时错误 (0x800A01B6)
对象不支持此属性或方法: 'from'
/processvote.asp, 第 32 行
贴上源码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn_vote.asp" -->
<%
Dim rsvote
Dim rsvote_numRows
Set rsvote = Server.CreateObject("ADODB.Recordset")
rsvote.ActiveConnection = MM_conn_vote_STRING
rsvote.Source = "SELECt * FROM t_vote"
rsvote.CursorType = 0
rsvote.CursorLocation = 2
rsvote.LockType = 3
rsvote.Open()
if rsvote.eof or rsvote.bof then
rsvote.addnew()
rsvote("vote_dre")=0
rsvote("vote_fla")=0
rsvote("vote_pho")=0
rsvote.update()
end if
rsvote_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<%
myvote=request.from("vote")
if myvote="dre" then
rsvote("vote_dre")=rsvote("vote_dre")+1
elseif myvote="fla" then
rsvote("vote_fla")=rsvote("vote_fla")+1
else
rsvote("vote_pho")=vsvote("vote_pho")+1
End if
rsvote.update()
Response.Redirect ("showvote.asp")
%>
<body>
</body>
</html>
<%
rsvote.Close()
Set rsvote = Nothing
%>