-
Notifications
You must be signed in to change notification settings - Fork 0
/
ec4voters_votingpage.php
112 lines (82 loc) · 3.05 KB
/
ec4voters_votingpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Introduction Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="body">
<header>
<div class="container">
<a href="first.php"><img class="logo" src="logo.jpg"></a>
<h1 class="hover-4">ICT Voting Portal</h1>
<nav>
<ul>
<div class="flex">
<div>
<li class="home"><a href="first.php">SignUp</a></li>
</div>
<div>
<li><a href="about_page.html">About</a></li>
</div>
</li>
<div>
<li style="float:right" class="about"><a href="first.php">LogOut</a></li>
</div>
</div>
</ul>
</nav>
</div>
</header>
<center>
<form class="signup" style="margin-top: 300px;" method="post">
<h2 class="votinghead">GIVE YOUR VOTE TO THE FOLLOWING CANDIDATES OF EC FOURTH YEAR</h2>
<label for="vote">Anurag Desai</label>
<input type="radio" id="vote" name="ce1" value="61">
<br><br>
<label for="vote">Raj Reddy</label>
<input type="radio" id="vote" name="ce1" value="62">
<br><br>
<label for="vote">Siksha Mishra</label>
<input type="radio" id="vote" name="ce1" value="63">
<br><br>
<label for="vote">Vishal Tiwari</label>
<input type="radio" id="vote" name="ce1" value="64">
<br><br>
<label for="vote">Sneha Jain</label>
<input type="radio" id="vote" name="ce1" value="65">
<br><br>
<label for="vote">Rahul Srinivasan</label>
<input type="radio" id="vote" name="ce1" value="66">
<br><br>
<br >
<input class="signup" type="submit" value="Vote" name="submit"><br><br>
</form>
</center>
<br><br>
<marquee class="marquee">The Election will be held only between the given time. So, hurry up and Represent Yourself!!!</marquee>
</body>
</html>
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] === "vote" || $_SESSION['loggedin']==="adm" || $_SESSION['loggedin'] !== "ec4voters" ){
header("location: error.php");
exit;
}
$temp1 = base64_decode(urldecode($_GET['temp']));
$temp2 = base64_decode(urldecode($_GET['trialvf']));
$_SESSION['MobileNumber']=$temp1;
if($temp2==0){
if(isset($_POST['submit'])){
if(isset($_POST['ce1'])){
$_SESSION['vp']=$_POST['ce1'];
$param1 = urlencode(base64_encode($_SESSION['MobileNumber']));
$param2=urlencode(base64_encode($_SESSION['vp']));
$_SESSION['loggedin']="thankyou";
header("Location:thankyou_page.php?temp2=$param1&vf=$param2");
}
}
}else{
}
?>