一个投票系统的源程序

2018-09-05 23:50

阅读:1023

  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.
// (see Footer(), documented in SSI.asp for details on how to do this)
//

//Please contact me to discuss any ASP contract work you may have.

// ============================================

// 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 ( )
{
);

// if the survey hasnt been submitted yet...
{
//...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! );

Of course, the real benefit to you is that if you tell me what you like Ill probably
the probability increases rather
dramatically! );

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. );

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? );


评论


亲,登录后才可以留言!