/home/wpollock1/public_html/PHP/poll.php
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<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" />
</head>
<body>
<h1>Poll Test</h1>
<p>
This page is intended to demonstrate how you can quickly add
polls to almost any page on your website.
</p>
<h2>Poll 1</h2>
<?php
// 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.
require_once('poll/poll.php');
show_vote_control('1');
// More than one poll can be displayed on the same page; here's
// another example:
?><h2>Poll 2</h2><?php
show_vote_control('2');
// The following poll demonstrates how turn the poll values into links;
// See config.php for the example definition.
?><h2>Poll 3</h2><?php
show_vote_control('3');
?>
</body>
</html>