Online Voting System using PHP with Source Code


This is a complete Online Voting System I created for my final year project for the University of Lusaka in Zambia. This system is a PHP Project that provides an online platform to vote. The system was developed for a specific school. This project stores the candidate details, voters details, and etc. The voters in this project are the student of the school and in order for them to vote, they must register their system account and their student ID number is required. After the student registration to the system, the system admin user will activate the student accounts so they could vote for their candidates. The system has 3 types of users which are the Admin, Staff, and Voters. The admin can manage all of the data in this system and the staff has only limited access to manage the data. This Voting System generates a printable report for the total counts of the vote for all candidates.

The project was developed using PHP/Mysqli, MySQL Database, HTML, CSS, Javascript (jQuery and Ajax), and Bootstrap for the design. The system source code is free to download. Just follow the instructions that are provided below to run the project properly.


Admin Side

  • Login/Logout
  • Manage Candidate
  • Activate/Deactivate Voters
  • Manage Students
  • Generate Election Report
  • Manage User/Staff List
  • View User Time Logs

Staff Side

  • Login/Logout
  • Manage Candidate
  • View Voters List
  • Manage Students
  • Generate Election Report
  • View User/Staff List


  • Register to the system
  • Vote

How to Run


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


  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the downloaded source code 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 "vote".
  6. Import the provided SQL file. The file is known as "vote.sql" located inside the "database" folder.
  7. Browse the Online Coting System in a browser. i.e. http://localhost/voting

Admin Access Information

Logi ID: 1
Username: admin
Password: admin

User Access Information

Logi ID: 4
Username: user
Password: user


That's it! You can now explore the features and functionalities of this project. I hope this will help you with what you are looking for.

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 for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


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.


Submitted byNiceyemmon Tue, 08/20/2019 - 14:58

Please send the complete project sources code with the project articles to [email protected] i want to use it for my final year project. thank you
Submitted byAnonymous (not verified)on Mon, 09/06/2021 - 18:09

I can't login as a voter? can you help me fix that thank you, highly appreciated

Add new comment