/    Sign up×
Community /Pin to ProfileBookmark

Creating a poll on a website

Hi all!
Newbie here, I’ve just started doing a little bit of freelance web design work to help make some extra money and pay the bills. I’m doing pretty basic stuff for friends and friends of the family. I haven’t really done serious web design stuff since high school (2001-05), when I first taught myself HTML. I learned some CSS in college, but now as I design, I mostly use Komopozer (WYSIWYG) to help me lay out the site and use my own (albeit, outdated) knowledge to clean up things or fiddle with details in the source code.

[B]If any of you are experts on setting up a poll for a website I could really use your help![/B]

I’m working on a website for a friend. It’s pretty simple, except he wants me to include a poll in it and that’s what’s giving me the most trouble. I’ve tried googling how to create a poll but all I keep getting is poll creating websites, most asking for money and simply offering to host a poll or survey on their site. What I want to do is create a poll within the website itself. Here are the elements it should include:

The poll is asking people to vote for a candidate, there are 4 options.

  • 1.

    Three candidates are pre-selected. For these options, I need to set it up so that you can just click on an image that says “Vote for Bill” (or whatever) to cast the vote

  • 2.

    The 4th is an “other” option, where people can either choose from a drop down list of options, or in a form box type in their “write in candidate”, and then click on the “Vote for Other” image to cast their vote

  • 3.

    Once you vote, you should be automatically directed to a live results page that has a number or percentage break down of all the votes that have been cast so far (Candidate A, Candidate B, Candidate C, Other)

  • 4.

    It would be nice if a report or email could be generated on the back-end so that my friend can see what someone has voted for, especially if they picked someone from the drop-down or wrote someone in the form box (he’s curious to see what people are choosing or writing in)

  • 5.

    The final, and perhaps separate element, would be placed underneath the results graph. It would be a form (all fields mandatory) where people could enter their name, email, etc. to be informed of updates, changes etc. It’s basically just an email capture opportunity, but if it’s possible I think my friend would like a way to link the information a person enters there with whatever vote they just made.

  • 6.

    This last part might be me getting too ambitious, but of course we want a social media element to it. I could go the simple route and just do a simple “share on facebook” button, that just shares the website. However, it might be kind of cool to set it up so that when someone votes it shares on facebook as: “I voted for Candidate A! Who would you vote for? Visit website.com and cast your vote” or whatever.

  • So does anyone have suggestions for how it would be possible to set up a poll like this? Is it possible to just code it right in to the website? Right now the page is just plain HTML and some CSS. Will I need to use PHP or other fancy web languages that I’m not yet familiar with? ?

    Any help, advice, links to tutorials, etc would be much appreciated. Thank you!

    to post a comment
    HTML

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @tracknutMay 04.2011 — All that is possible, but will require a server application which it sounds like you may not be up for writing. Have you looked at any of the online tools like http://www.surveymonkey.com/ - it might get you close enough to your requirements without having to make it yourself.

    Dave
    Copy linkTweet thisAlerts:
    @smilingstrangeauthorMay 09.2011 — Hi tracknut, a little late, but thank you for your reply! I did end up using a third-party provider, I used google docs (free though not super flexible or customizable). Thank you for the feedback, very stressful project I'm glad that's done. I think it's time for me to brush up/update my web design abilities.
    ×

    Success!

    Help @smilingstrange spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...