/home/wpollock1/public_html/PHP/poll.php

 1: <!DOCTYPE html
 2:      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 3:      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 5: <head>
 6: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 7: <title>Poll Test</title>
 8: <link href="poll/template/styles.css" rel="stylesheet" type="text/css" />
 9: </head>
10: <body>
11: 
12: <h1>Poll Test</h1>
13: 
14: <p>
15: This page is intended to demonstrate how you can quickly add
16: polls to almost any page on your website.
17: </p>
18: 
19: <h2>Poll 1</h2>
20: <?php
21: 
22: 	// The two lines below are all that is required to add a poll
23: 	// to your page.  Obviously, these need to be placed within
24: 	// a PHP code block inside a valid PHP page.  You will also need to
25: 	// configure the settings in config.php properly, where you will
26: 	// also define your polls.
27: 	//
28: 	// Modify these lines as follows:
29: 	//
30: 	// * Change the include path to reflect where DRBPoll is installed.
31: 	// * Change the parameter for show_vote_control() to reflect the unique
32: 	//   ID for the poll on this page.  This feature allows you to store
33: 	//   data for more than one poll using the same installation of DRBPoll.
34: 	//   New polls must be added to the $VALID_POLLS array in config.php.
35: 
36: 	require_once('poll/poll.php');
37: 	show_vote_control('1');
38: 
39: 	// More than one poll can be displayed on the same page; here's
40: 	// another example:
41: 	?><h2>Poll 2</h2><?php
42: 	show_vote_control('2');
43: 
44: 	// The following poll demonstrates how turn the poll values into links;
45: 	// See config.php for the example definition.
46: 	?><h2>Poll 3</h2><?php
47: 	show_vote_control('3');
48: 
49: ?>
50: </body>
51: </html>