Update enter_information.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');
1d28fc11 14slack_general('Is the information correct ('.$_COOKIE['invite'].')','md-petition');
a2fa54c8 15$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
16$r = $petition->query($q);
17$d = mysqli_fetch_array($r);
a8cce358 18if ($d['VTRID'] != ''){
a2fa54c8
PM
19 $VTRID = $d['VTRID'];
20 $FIRSTNAME = $d['FIRSTNAME'];
21 $MIDDLENAME = $d['MIDDLENAME'];
22 $LASTNAME = $d['LASTNAME'];
23 $ADDRESS = $d['ADDRESS'];
24 $RESIDENTIALCITY = $d['RESIDENTIALCITY'];
25 $COUNTY = $d['COUNTY'];
26 $RESIDENTIALZIP5 = $d['RESIDENTIALZIP5'];
8b1d1510
PM
27 // set cookies for hard_copy.php
28 setcookie("pCOUNTY", $COUNTY);
29 setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
30 setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
05a04f80
PM
31 setcookie("pADDRESS1", "$ADDRESS");
32 setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
577a0b79 33 setcookie("pVTRID", $VTRID);
867b0c86 34 setcookie("signature_status", 'verified');
712c1004 35}else{
867b0c86 36 setcookie("signature_status", 'notfound');
a2fa54c8 37 header('Location: warning_not_found.php');
712c1004 38}
cd5f7892 39
9185e8d3 40$qX = "select * from website_text where id = '6'";
cd5f7892
PM
41 $rX = $petition->query($qX);
42 $dX = mysqli_fetch_array($rX);
712c1004 43?>
724701a4 44<script>document.title = "MEPS - Confirm information";</script>
6066e71a 45<div class='row'>
0512a607 46 <div class='col-sm-10' style='height:100px; text-align:center;'><h1><?PHP echo $dX['text_title'];?></h1><h2><?PHP echo $dX['text_block'];?></h2></div>
6066e71a
PM
47</div>
48<div class='row'>
bda3f5d8
PM
49 <div class='col-sm-5' style='text-align:right;'><h2>First Name</h2></div>
50 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $FIRSTNAME;?></h2></div>
8cf8dc22 51</div>
6066e71a 52<div class='row'>
bda3f5d8
PM
53 <div class='col-sm-5' style='text-align:right;'><h2>Middle Name</h2></div>
54 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $MIDDLENAME;?><h2></div>
8cf8dc22 55</div>
6066e71a 56<div class='row'>
bda3f5d8
PM
57 <div class='col-sm-5' style='text-align:right;'><h2>Last Name</h2></div>
58 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $LASTNAME;?></h2></div>
8b1d1510 59</div>
6066e71a 60<div class='row'>
bda3f5d8
PM
61 <div class='col-sm-5' style='text-align:right;'><h2>Date of Birth</h2></div>
62 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $DOB;?></h2></div>
8cf8dc22 63</div>
6066e71a 64<div class='row'>
bda3f5d8
PM
65 <div class='col-sm-5' style='text-align:right;'><h2>Full Addresss</h2></div>
66 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $ADDRESS;?></h2></div>
8cf8dc22 67</div>
6066e71a 68<div class='row'>
bda3f5d8
PM
69 <div class='col-sm-5' style='text-align:right;'><h2>Phone</h2></div>
70 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $PHONE;?></h2></div>
6066e71a
PM
71</div>
72<div class='row'>
bda3f5d8
PM
73 <div class='col-sm-5' style='text-align:right;'><h2>City</h2></div>
74 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $RESIDENTIALCITY;?></h2></div>
75</div>
76<div class='row'>
77 <div class='col-sm-5' style='text-align:right;'><h2>County</h2></div>
78 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $COUNTY;?></h2></div>
79</div>
80<div class='row'>
81 <div class='col-sm-5' style='text-align:right;'><h2>Zip</h2></div>
82 <div class='col-sm-5' style='text-align:left;'><h2><?PHP echo $RESIDENTIALZIP5;?></h2></div>
8cf8dc22
PM
83</div>
84<div class='row'>
0512a607
PM
85 <div class='col-sm-5'><button type="button" class="btn btn-danger btn-lg btn-block" onclick="window.location.href='reset.php'">NO</button></div>
86 <div class='col-sm-5'><button type="button" class="btn btn-success btn-lg btn-block" onclick="window.location.href='eligible.php'">YES</button></div>
8cf8dc22 87</div>
b7349fe7 88
b7349fe7 89<?PHP include_once('footer.php');