Update index.php
[clinton/MarylandElectronicPetitionSignature.git] / index.php
1 <?PHP
2 if (isset($_GET['invite'])){
3 setcookie("invite", $_GET['invite']);
4 header('Location: index.php');
5 }
6 $title = 'MEPS - Are you Registered?';
7 if ($_COOKIE['invite'] != ''){
8 $title = 'MEPS ('.strtoupper($_COOKIE['invite']).') - Are you Registered?';
9 }
10 include_once('header.php');
11 ?>
12 <script>document.title = "<?PHP echo $title;?>";</script>
13 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Are you a Registered Maryland Voter?</h2></div>
14
15 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-success" onclick="window.location.href='enter_information.php'">YES</button></div>
16
17 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-danger" onclick="window.location.href='not_a_registered_voter.php'">NO</button> </div>
18
19 <?PHP include_once('footer.php');