├── logout.php
├── adminLogout.php
├── index.php
├── update.php
├── loginSubmit.php
├── voteCaste.php
├── registerCandidateScript.php
├── registerVoterScript.php
├── about.php
├── master.css
├── voterLogin.php
├── registerCandidate.php
├── vote.php
├── adminLogin.php
├── registerVoter.php
├── README.md
├── result.php
├── dashboard.php
└── studentvote.sql
/logout.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/adminLogout.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ";
8 | ECHO "Your vote was successfully recorded.
";
9 | $cand_id=$_POST['chosen_candidate'];
10 | echo "voted to candidate with id= ".$cand_id;
11 |
12 | echo "
";
13 | $sql1 = "update users set voted='1' where id='$vid'";
14 | $query1_result = mysqli_query( $conn, $sql1) or die(mysqli_error($conn));
15 | //echo "Done.
22 | Student Election System is a online election system, which can be used for normal class election processes. For example, election of a
23 | class Representative, Student secretary, and other posts.
24 |
When it comes to Voting by students, this platform will serve the better way. First you have to have a admin account.There can only be one admin account, and it has superuser access to database. Next, all the voters have to first register in the forum and then he/she can cast vote. One can cast only one vote, identified by user's unique ID/ student ID.
25 |
So use it for your real life purposes, and have fun.
26 |
Site wide look and feel can be changed in master.css
27 |
Admin username and password is 'admin'.
28 |
29 |