您现在的位置:计算机技术学习网 > 技术中心 > WEB编程 > ASP >

一个投票系统的源程序(coveryourasp.com)

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 17:45 点击:
SurveyDescr.asp
<!--#include file = "include/Startup.asp"-->
<!--#include file = "utils/Survey.asp"-->

<%
// ============================================
// NOTE: all source code downloaded from CoverYourASP was written by
// James Shaw (unless stated otherwise), and is copyright (c) 2000 by
// James Shaw. You may use this source code on your web sites, but
// please dont publish or distribute in any way.
//
// I would appreciate an HTML comment in any code you use, i.e.
//         <!-- portions (c) james@CoverYourASP.com-->
// (see Footer(), documented in SSI.asp for details on how to do this)
//
// <shameless plug>
//      Please contact me to discuss any ASP contract work you may have.
// </shameless plug>
// ============================================

// output relevant meta tags
Init( "Survey your readers" );

// output common top of page
Header( Survey your readers );

// output page content
Content ( );

// output common bottom of page
Footer( );

// ============================================
// the content of this page - every page has a function Content that
// is called above.
// ============================================
function Content ( )
{
   Out ( <td colspan=2 width="80%" valign="top"> );

      // if the survey hasnt been submitted yet...
      if ( !Request.Form.Count )
      {
         //...display some blah, blah
         Out ( Finally, surveys come to CoverYourASP! Ive been wanting to ask you guys and gals
questions for a long time, and now I can. Its up to you if you want to answer of course! );

         Out ( <p>Of course, the real benefit to you is that if you tell me what you like Ill probably
provide it. If you send in your <a href="Donate.asp">donations</a> the probability increases rather
dramatically! );

         Out ( <p>Take the example survey below if you have the time and inclination. I plan to post more
in a special survey category, and start offering incentives to take them. );

         Out ( <p>Afterwards, look at the code. I think youll be surprised how simple it is to create
surveys with this code. This page has one function call in it, with just one parameter - the name of the
survey! All questions, answers and results are stored in the database. );
      }

      // show the survey, or process its input
      ProcessSurvey ( Who are you and what do you think? );

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • WAP常见问题问答大全(四)
      • ASP开发必备:WEB打印代码大全
      • ASP调用系统ping命令
      • asp缓存技术
      • ASP教程:第三篇 ASP基础
      • 用ASP+XML打造留言本(4)
      • 关于ASP Recordset 分页出现负数解决方法及建议
      • 用asp怎样编写文档搜索页面(5)
      • ASP处理多关键词查询实例代码
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1