Online Voting System using PHP Free Source Code

Language

Introduction of Online Voting System

This is a PHP Project is entitled Online Voting System. This was developed specifically for a Secondary Level/High School of CHMSC. The system handles the voting process of the school and this provides an online platform for the student to vote for their desired candidates.

About the System

The Online Voting System source code is written/built using PHP, MySQL Database, HTML, CSS, Javascript, bootstrap. The source code was originally developed using the older version of PHP and now upgraded to run properly in later versions such as PHP7. The system has 2 types of users which are the admin user and the voters. The admin user is in charge of managing the list of voters and candidates. The admin can also view and export to excel the canvassing report and the list of voters. The voters will have or be provided with an access or system credential to log in and vote for their desired candidates. The voters are only allowed to vote ones and the system will automatically reject the access if the voter is already voted to avoid duplication of votes.

Features

Admin

  • Login/Logout
  • Manage Candidate
  • Manage Voters
  • Export Voters list to Excel
  • View Canvassing Report
  • Export Canvassing Report to Excel
  • View System History log.

Voters

  • Login/Logout
  • Submit Vote

The Online Voting System source code is free to download on this website. Feel free to download and modify the source code to enhance your knowledge of how the online voting system was developed and works.

How to Run

Requirements

  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)

Installation/Setup

  1. Open your XAMPP/WAMP's Control Panel and start the Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming ovs.
  6. Import the provided SQL file. The file is known as ovs.sql located inside the db folder.
  7. Browse the Online Voting System in a browser. i.e. http://localhost/Online_voting_system for the voters and http://localhost/Online_voting_system/admin for the admin side.

Admin Access Information:

Username: admin
Password: admin

DEMO

That's it! I hope this Online Voting System in PHP will help you and you'll find something useful for your future PHP Projects.

Happy Coding :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

I tried logining in after going to admin page but not able to login

In reply to by Balakrishna Kini (not verified)

i try to download the program but theres no error.. this is our project on our subject i prensent this to our class and theres no problem but i will try to fnd out what is your problem sir. thank you...

can u fix the error in login page please sir.. i encounter lots of problem and may i know what IDE did you use please i want to develop this project thanks in advance :)

In reply to by venner272000

My Problem is To develop The LoginForm Code

everyone please try to explore on your own..i use wamp server and modify some codes and its working correctly..i am proud of the creator of this program,very nice indeed,the codes are simple and understandable...thank you so much

In reply to by Anonymous (not verified)

wich codes did you modify???

In reply to by Anonymous (not verified)

What is the code that you've modify dude? I can't figure it out, please help.

..please fix the bugs..every page that i link there is a php script error..also this web-application is not compatible to IE7 and other browser..try 2 make 8 cross-browser and cross-platform..use semantic codes..use also proper tabbing on your html and php srcipt..try to validate all the page with w3c validator..visit the w3.org.they have the validator for html and css..

the system is nice but the log in and password is doesn't work.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\votingsystem\admin\header.php:159) in C:\xampp\htdocs\votingsystem\admin\index.php on line 62 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\votingsystem\admin\header.php:159) in C:\xampp\htdocs\votingsystem\admin\index.php on line 70

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\onlinevotingsystem\admin\header.php:159) in E:\xampp\htdocs\onlinevotingsystem\admin\index.php on line 62

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\onlinevotingsystem\admin\header.php:159) in E:\xampp\htdocs\onlinevotingsystem\admin\index.php on line 62 There are so many causes of such error, buh for that page where the error is being called for, the user at his or her own end shuld bring out the connecting code, i.e., disable the include function....Need more help call +2348135567221

i have a similar voting program.. i wanted to compare and contrast with his own.. only ryt nw i am very busy with other office and academic matters. if u hv sucessfully debugged d pgm pls cn u snd me a copy. thanks a lot

nice one! dinownload ko ung buong project, may mga konting kulang lang sa voting pero ok naman ung admin,naglagay din ako ng bar graph. :D salamat sa codes good work!

the login pages of this codes are vulnerable to sql injection..can someone please correct it and post back?

Hi can you provide or update the database with filled tables? the db you provided is empty

Sir Please i DOwnload this when i login it said no database selected

Add new comment