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