- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
setvote.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <%if session("admin")="" then
- response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
- response.End
- end if
- dim Checked,sql
- Checked=request.form("Checked")
- if Checked="" then
- response.write "<script>alert('对不起,请您选择投票项!');history.go(-1);</Script>"
- Response.End
- end if
- set rs=server.createobject("adodb.recordset")
- sql="Select isChecked from vote where IsChecked=1"
- rs.open sql,conn,1,3
- if not rs.eof then
- do while not rs.eof
- rs("IsChecked")=0
- rs.movenext
- loop
- end if
- rs.close
- sql="Select IsChecked from vote where ID="&Checked
- rs.open sql,conn,1,3
- if not rs.EOF then
- do while not rs.EOF
- rs("isChecked")=1
- rs.MoveNext
- loop
- end if
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- response.redirect "managevote.asp"
- %>