In this system, Site administrator just publishes a question with a set of answer and user just clicks on their desired answer. When he clicks the submit button, same time the overall answer result of this question will get publish.

Here, a user can give only one opinion or answer for a question. We are restricting user to give only one answer for one question. Here we are just restricting user by COOKIE. We are just set the COOKIE and in next submit we are just checking the value if it is avaliable, user cannot give second answer.

NOTE: You can restrict user by adding other method also like ask login for anser or other method.

Now, Just create a table into your database for submiting the poll answer.

Note: This table is just storing the answer value. you can customise as per your need.

Now, Just create a table into your database for submiting the poll answer.

Note: This table is just storing the answer value. you can customise as per your need.

HTML CODE HERE:

AJAX CODE HERE:

Here, there is one supporting js.

When user clicks on submit button then this ajax call happens and call poll.php file by passing the submitted value.

poll.php code here: