Update warning_not_found.php
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
CommitLineData
712c1004
PM
1<?PHP
2$web_first_name = $_COOKIE['web_first_name'];
3$web_last_name = $_COOKIE['web_last_name'];
4$web_house_number = $_COOKIE['web_house_number'];
5$web_zip_code = $_COOKIE['web_zip_code'];
8b1d1510 6$DOB = $_COOKIE['pDOB'];
6066e71a 7$PHONE = $_COOKIE['pPHONE'];
712c1004
PM
8if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
9 // ok to check for records
10}else{
a2fa54c8 11 header('Location: warning_incomplete.php');
712c1004
PM
12}
13include_once('header.php');
a2fa54c8 14$q = "select * from VoterList where LASTNAME = '$web_last_name' and FIRSTNAME = '$web_first_name' and HOUSE_NUMBER = '$web_house_number' and RESIDENTIALZIP5 = '$web_zip_code'";
712c1004
PM
15$r = $petition->query($q);
16$d = mysqli_fetch_array($r);
a8cce358 17if ($d['VTRID'] != ''){
a2fa54c8
PM
18 $VTRID = $d['VTRID'];
19 $FIRSTNAME = $d['FIRSTNAME'];
20 $MIDDLENAME = $d['MIDDLENAME'];
21 $LASTNAME = $d['LASTNAME'];
22 $ADDRESS = $d['ADDRESS'];
23 $RESIDENTIALCITY = $d['RESIDENTIALCITY'];
24 $COUNTY = $d['COUNTY'];
25 $RESIDENTIALZIP5 = $d['RESIDENTIALZIP5'];
8b1d1510
PM
26 // set cookies for hard_copy.php
27 setcookie("pCOUNTY", $COUNTY);
28 setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
29 setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
05a04f80
PM
30 setcookie("pADDRESS1", "$ADDRESS");
31 setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
577a0b79 32 setcookie("pVTRID", $VTRID);
867b0c86 33 setcookie("signature_status", 'verified');
712c1004 34}else{
867b0c86 35 setcookie("signature_status", 'notfound');
a2fa54c8 36 header('Location: warning_not_found.php');
712c1004 37}
cd5f7892
PM
38
39$qX = "select * from website_text where id = '3'";
40 $rX = $petition->query($qX);
41 $dX = mysqli_fetch_array($rX);
712c1004 42?>
724701a4 43<script>document.title = "MEPS - Confirm information";</script>
6066e71a 44<div class='row'>
cd5f7892 45 <div class='col-sm-12' style='height:100px; text-align:center;'><h2><?PHP echo $dX['text_title'];?></h2><p><?PHP echo $dX['text_block'];?></p></div>
6066e71a
PM
46</div>
47<div class='row'>
a2fa54c8 48 <div class='col-sm-6' style='height:50px; text-align:center;'>First Name</div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $FIRSTNAME;?></div>
8cf8dc22 49</div>
6066e71a 50<div class='row'>
e3e5a039 51 <div class='col-sm-6' style='height:50px; text-align:center;'>Middle Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $MIDDLENAME;?></div>
8cf8dc22 52</div>
6066e71a 53<div class='row'>
e3e5a039 54 <div class='col-sm-6' style='height:50px; text-align:center;'>Last Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $LASTNAME;?></div>
8b1d1510 55</div>
6066e71a 56<div class='row'>
8b1d1510 57 <div class='col-sm-6' style='height:50px; text-align:center;'>Date of Birth </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $DOB;?></div>
8cf8dc22 58</div>
6066e71a 59<div class='row'>
e3e5a039 60 <div class='col-sm-6' style='height:50px; text-align:center;'>Full Addresss </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $ADDRESS;?></div>
8cf8dc22 61</div>
6066e71a
PM
62<div class='row'>
63 <div class='col-sm-6' style='height:50px; text-align:center;'>Phone </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $PHONE;?></div>
64</div>
65<div class='row'>
e3e5a039
PM
66 <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
67 <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
68 <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
8cf8dc22
PM
69</div>
70<div class='row'>
00e1b93d 71 <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-success" onclick="window.location.href='eligible.php'">YES</button></div>
54ea0dbe 72 <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-danger" onclick="window.location.href='reset.php'">NO</button></div>
8cf8dc22 73</div>
b7349fe7
PM
74
75
76
77
78
79
80
81
82<?PHP include_once('footer.php');