2 if (isset($_GET['invite'])){
3 setcookie("invite", $_GET['invite']);
4 header('Location: index.php');
6 $title = 'MEPS - Are you Registered?';
7 if ($_COOKIE['invite'] != ''){
8 $title = 'MEPS ('.strtoupper($_COOKIE['invite']).') - Are you Registered?';
10 include_once('header.php');
12 $q = "select * from website_text where id = '1'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
16 <script
>document
.title
= "<?PHP echo $title;?>";</script
>
17 <div
class='col-sm-12' style
='height:100px; text-align:center;'><h2
><?PHP
echo $d['text_title'];?
></h2
><p
><?PHP
echo $d['text_block'];?
></p
></div
>
19 <div
class='col-sm-6' style
='height:100px; text-align:center;'><button type
="button" class="btn btn-success btn-lg btn-block" onclick
="window.location.href='enter_information.php'">YES
</button
></div
>
21 <div
class='col-sm-6' style
='height:100px; text-align:center;'><button type
="button" class="btn btn-danger btn-lg btn-block" onclick
="window.location.href='not_a_registered_voter.php'">NO
</button
> </div
>
23 <?PHP
include_once('footer.php');