add.asp
来自「Flash+jsp 实现的投票系统 实现的投票系统 实现的投票系统 实现的投票系」· ASP 代码 · 共 30 行
ASP
30 行
<!--#include file="pathcheck.asp"-->
<!--#include file="isy.asp"-->
<!--#include file="conn.asp"-->
<%
voteco=Trim(Request.Form("voteco"))
bg_color=Trim(Request.Form("bg_color"))
word_color=Trim(Request.Form("word_color"))
word_size=Trim(Request.Form("word_size"))
sql="select * from votepro"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs.addnew
rs("voteco")=voteco
for i=1 to 5
thisdate=Trim(Request.Form("cs"&i))
if thisdate="" then exit for
rs("cs_"&i)=thisdate
rs("cs_"&i&"_num")=0
next
if bg_color<>"" then rs("bg_color")=bg_color
if word_color<>"" then rs("word_color")=word_color
if word_size<>"" then rs("word_size")=word_size
rs.update
closers
closedb
response.Redirect("rep.asp?operate=add")
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?