-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththankyou.php
60 lines (45 loc) · 1.27 KB
/
thankyou.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
<?php
include('session.php');
include('dbcon.php');
include('header.php');
?>
<link rel="stylesheet" type="text/css" href="admin/css/style.css" />
<script type="text/javascript">
$(document).ready(function()
{
var delay = 2000;
setTimeout(function(){ window.location = 'index.php';}, delay);
});
</script>
<script src="jquery.iphone-switch.js" type="text/javascript"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand">
<img src="admin/images/logo.jpg" width="60" height="60">
</a>
<a class="brand">
<h2>ONLINE VOTING SYSTEM</h2>
<div class="chmsc_nav"><font size="4" color="white">CU</font></div>
</a>
<?php include('head.php'); ?>
</div>
</div>
</div>
<div class="wrapper">
<?php
$result=mysqli_query($conn,"select * from voters where VoterID='$session_id'") or die(mysqli_error());
$row=mysqli_fetch_array($result);
?>
<div class="thank_you">
<div class="thank">
<h2><font size="6" color="white">Thank You For Voting: <?php echo $row['FirstName']." ".$row['LastName'];?></font></h2>
</div>
<?php session_destroy(); ?>
</div>
</div>
</div>
</body>
</html>