In this tutorial, we'll be creating an Ajax Poll Script that displays the results with colored and animated lines using PHP, MySQL and jQuery.
The script has a pretty easy logic and can be implemented into any website quickly by simply calling a php function like getPoll(2) which brings the second poll.
The code has 3 parts: HTML, JavaScript (jQuery) and PHP. Let's start with the easiest one:
An unlimited number of questions & a variable number of answers can be added by simply editing the XML file.
When users select an answer, they can pass to the next question & all answers are stored inside the XML file for visualizing them later (not included within the code).
Zoki Poll is a free PHP – Ajax poll script that stores data in a XML file.
It has flexible display options for integrating the poll in limited spaces like horizontal scrolling long question & answers or vertical scrolling of answers.
Vote results are displayed with a nice, animated percentage bar & the look of the poll can be easily changed via CSS.
To prevent duplicate voting, Zoki Poll has a cookie-based protection system.
This Ajax poll script does not have an administration interface & it is a nice piece of code if you’re ready to integrate it yourself.
P.S. Downloading the script requires free registration.
Requirements: PHP 4.3.2+ Compatibility: All Major Browsers
LimeSurvey is an open source PHP survey application which has almost every feature you may need.
It enables you to create conditional (questions change depending on the previous answers), open/close group surveys with e-mail invitations, reminders & more.
This PHP survey application is completely multilingual and currently supports 46 languages. Any survey can be created to support more than 1 language.
Templates can be created and any survey can be choosen to work with that template to match the design of the websites.
Some features of LimeSurvey:
Unlimited number of surveys at the same time
Unlimited number of questions in a survey
Unlimited number of participants to a survey
Multi-Lingual Surveys
User-Management
20 different question types with more to come
WYSIWYG HTML Editor
Quotas Management
Integration of pictures and movies into a survey
Creation of a printable survey version
Option for participants to buffer answers to continue survey at a later time
Survey expiry dates for automation
Enhanced import and export functions to text, CSV, PDF, SPSS, queXML and MS Excel format
Basic statistical and graphical analysis with export facility
AskPeople is a free PHP survey application that is simple but functional.
It supports most of the entry options with checkboxes, radio buttons, textboxes, textareas & dropdowns. Using AskPeople, a complicated survey can be created in minutes.
AskPeople has a template system where a new design can be implemented for the surveys to match the look of your website.
Some features of this free PHP survey application:
Secure, multi-user admin interface.
Unlimited, completely flexible templates.
Built in file manager.
Multipage surveys using pagebreaks between groups of questions.
Make any question ‘required’ to ensure respondents complete it.
Optional cookie-based protection against repeated submission of forms.
Plain-text questionnaire export.
Raw data editor.
One-click project backup.
This is a handy application for creating & managing a job application form or making a market research & more.