-
Notifications
You must be signed in to change notification settings - Fork 4
/
voter.php
58 lines (49 loc) · 2.18 KB
/
voter.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
<!DOCTYPE html>
<html>
<head>
<?php require 'header_voter.php'; ?>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="col-sm-12">
<?php
if (!isset($_SESSION)) {
session_start();
}
include "auth.php";
?>
</div>
<div class="container" style="padding:100px;">
<div class="row">
<div class="col-sm-12" style="border:2px outset gray;">
<div class="page-header text-center">
<h2 class="specialHead"> Welcome <?php echo $_SESSION['SESS_NAME']; ?> </h2>
<p class="normalFont" style="font-size:18px;">You Could Vote</p>
</div>
<form action="submit_vote.php" name="vote" method="post" id="myform">
<center>
<p class="normalFont" style="font-size:24px;"> What is your favorite programming language? </p><BR>
<input type="radio" name="lan" value="JAVA"> JAVA<BR>
<input type="radio" name="lan" value="PYTHON"> PYTHON<BR>
<input type="radio" name="lan" value="C++"> C++<BR>
<input type="radio" name="lan" value="PHP"> PHP<BR>
<input type="radio" name="lan" value=".NET"> .NET<BR>
</font>
</center><br>
<?php global $msg;
echo $msg; ?>
<?php global $error;
echo $error; ?>
<center><input type="submit" value="Submit Vote" name="submit" style="height:30px; width:100px" /></center>
<BR>
</form>
</div>
</div>
</div>
</body>
</html>