forked from srijanshetty/by-elections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
final.php
46 lines (44 loc) · 981 Bytes
/
final.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
<?php
session_start();
session_destroy();
include('dbconnect.php');
$sql="UPDATE votes SET votecount = votecount + 1";
mysql_query($sql) or die(mysql_error());
?>
<!doctype html>
<html>
<head>
<title>Thank you for voting! :)</title>
<style type="text/css">
#proceed {
position: absolute;
bottom: 10px;
right: 10px;
}
a {color: rgb(218, 218, 218);}
a:visited {color: rgb(218, 218, 218);}
a:hover {color: black;}
</style>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(document).keypress(function(e) {
if(e.which == 13) {
window.location.href="index.php";
}
});
</script>
</head>
<body>
<audio id="sound" src="audio/beep-2.mp3"></audio>
<div align="center">
<br/><br/><br/>
<h1>Your vote is precious.<br/>Thank you for voting! :)</h1>
</div>
<div id="proceed">
<a href="index.php">Proceed</a>
</div>
<script>
document.getElementById("sound").play();
</script>
</body>
</html>