% if alexa="11" Then If Session("User_Account")="" Then Call AlertUrl("请先登陆!","Index.asp") Response.End End if End if %> <% Dim action,group action=Request("action") if action="add" Then if Request.Form("Option_Title")="" Then Call AlertUrl("没有添加标题","VoteOptionAdd.asp") Response.End End if if Request.Form("Option_Num")="" Then Request.Form("Option_Num")="0" End if set rs=Server.CreateObject("ADODB.recordset") sql="select * from Vote_Option" rs.open sql,conn,1,3 rs.addnew rs("Vote_Id")=Request.Form("Vote_Id") rs("Option_Title")=Trim(Request.Form("Option_Title")) rs("Option_Num")=Trim(Request.Form("Option_Num")) rs.update rs.close set rs=nothing conn.close set conn=nothing Call AlertUrl("添加成功!","VoteNavigation.asp") Response.End End if %>