Go to the previous topic.    Go to the next topic.

Getting Started

To manually add a new poll:

  1. Click Allow a New Poll.
  2. Copy the following HTML code into the page the poll will be on:
  3. <p>WebSite Poll: Yes, No, or Maybe</p>
    <form action="/cgi-bin/poll.cgi" method="post">
    <input type="hidden" name="poll_id" value="yesorno" />
    <input type="hidden" name="poll_title" value="Yes, No or Maybe" />
    <input type="hidden" name="redirrect" value="http://yahoo.com" />
    <input type="radio" name="vote" value="Yes" /> Yes <br />
    <input type="radio" name="vote" value="No" /> No <br />
    <input type="radio" name="vote" value="Maybe"> Maybe <br />
    <input type="submit" value="Vote!" />
    </form>
    

    Put the following code into your website to view the results:

    <a href="/cgi-bin/poll.cgi?poll_id=yesorno"> View Poll Results </a>

  4. If you use Server Side Includes(SSI), you may use the following in your website.
  5. <!--#include virtual="/cgi-bin/poll.cgi?poll_id=yesorno&ssi=1" -->

  6. Each time that you decide to change the poll_id to start a brand new poll, you must re-click Allow New Poll.

Once you get the hang of creating and displaying polls, try changing the colors of the results by creating a CSS style sheet and changing the bar_color attribute, making an SSI based page to display the results, and also displaying links to random past polls. All of these are explained in detail in the documentation section above.

To add a new poll using the Poll Wizard:

  1. Click Poll Wizard from the Poll Manger's main page.
  2. You'll be asked the question that the poll will ask, how many possible responses you'd like to include, and the URL to which you'd like to redirect users after they vote. Click Continue when finished.
  3. Enter the answers to your poll, the URL to a stylesheet (if applicable), and the color you would like to use for the poll's progress bar. Click Continue when finished.
  4. The wizard will generate all of the code snippets you will need to display the poll, its results, and link to random previous polls (if applicable).