Location: PHPKode > scripts > DRBPoll > example.php
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Poll Test</title>
<link href="poll/template/styles.css" rel="stylesheet" type="text/css" />

<h1>Poll Test</h1>

This page is intended to demonstrate how you can quickly add  
polls to almost any page on your website.

<h2>Poll 1</h2>

	// The two lines below are all that is required to add a poll 
	// to your page.  Obviously, these need to be placed within  
	// a PHP code block inside a valid PHP page.  You will also need to 
	// configure the settings in config.php properly, where you will 
	// also define your polls.
	// Modify these lines as follows: 
	// * Change the include path to reflect where DRBPoll is installed.  
	// * Change the parameter for show_vote_control() to reflect the unique  
	//   ID for the poll on this page.  This feature allows you to store  
	//   data for more than one poll using the same installation of DRBPoll.
	//   New polls must be added to the $VALID_POLLS array in config.php. 
	// More than one poll can be displayed on the same page; here's 
	// another example:
	?><h2>Poll 2</h2><?php 

	// The following poll demonstrates how turn the poll values into links;
	// See config.php for the example definition.
	?><h2>Poll 3</h2><?php 
Return current item: DRBPoll