你好,欢迎来到电脑编程技巧与维护杂志社! 杂志社简介广告服务读者反馈编程社区  
合订本订阅
 
 
您的位置:杂志经典 / 跟高手学编程
ASP技术建立网络调查投票系统(七)
 

 sel1=replace(sel1," ","")

       tp=split(sel1,",")

      '利用split把多选框提交的信息分割开,分别添加到数据库字段中

       for j=0 to ubound(tp)

          rs2("调查项目"&tp(j))=rs2("调查项目"&tp(j))+1

       next

       rs2.update

     end if

     rs2.close

next

rs3.close%>

6look.asp(查看调查投票结果)

  在编写look.asp代码之前先看一下调查结果界面的大体样式,如图3所示,然后在对其代码进行详细分析。


3

<!-- #include file="title.asp"-->

<table width=90% align=center cellpadding="1" cellspacing="1" border=0>

    <%set rs=server.createobject("adodb.recordset")

    rs.open "select * from 调查表 where id="&request("id"),c1,1,1

    'request("id")为调查表中ID字段值

    tp_flag=0

    tp_flag_count=0

    tp_flag_all=0

        for i=1 to 10

  推荐精品文章

·2024年12月目录 
·2024年11月目录 
·2024年10月目录 
·2024年9月目录 
·2024年8月目录 
·2024年7月目录 
·2024年6月目录 
·2024年5月目录 
·2024年4月目录 
·2024年3月目录 
·2024年2月目录 
·2024年1月目录
·2023年12月目录
·2023年11月目录

  联系方式
TEL:010-82561037
Fax: 010-82561614
QQ: 100164630
Mail:gaojian@comprg.com.cn

  友情链接
 
Copyright 2001-2010, www.comprg.com.cn, All Rights Reserved
京ICP备14022230号-1,电话/传真:010-82561037 82561614 ,Mail:gaojian@comprg.com.cn
地址:北京市海淀区远大路20号宝蓝大厦E座704,邮编:100089