Creating Poll in Drupal Using PHP

Introduction

In this article I will explain the creation of a poll in Drupal using PHP. When you want to create a poll in your Drupal project then first go to the administration settings. In administration settings you can choose site building. In site building you can choose module. And then open your module window and in the module window you can choose the poll option. The following description explains that.

click on administrater option.jpg

click on module option.jpg

Here the poll is already disabled.

unchecked poll option.jpg

And then you will place a check in the check box of the poll and finally click on the save configuration button. 

checked poll.jpg

Then you will refresh the browser and then click on the create content setting. 

click on content setting.jpg

Here your poll setting is available. Now you can create or add a poll in your site or project.

click on poll option.jpg

Click on the poll option to show your poll settings window.

save setting of poll.jpg

In this window you can set your poll question and set a choice just like that.   

your poll.jpg


Like, I am choosing Yes.  

choosing yes.jpg

Your Yes poll has been recorded.

Recorded Yes poll.jpg

choosing No.jpg

Your No poll has been recorded.

Recorded No poll.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all