Update is_the_information_correct.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'];
712c1004
PM
7if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
8 // ok to check for records
9}else{
a2fa54c8 10 header('Location: warning_incomplete.php');
712c1004
PM
11}
12include_once('header.php');
a2fa54c8 13$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
14$r = $petition->query($q);
15$d = mysqli_fetch_array($r);
a8cce358 16if ($d['VTRID'] != ''){
a2fa54c8
PM
17 $VTRID = $d['VTRID'];
18 $FIRSTNAME = $d['FIRSTNAME'];
19 $MIDDLENAME = $d['MIDDLENAME'];
20 $LASTNAME = $d['LASTNAME'];
21 $ADDRESS = $d['ADDRESS'];
22 $RESIDENTIALCITY = $d['RESIDENTIALCITY'];
23 $COUNTY = $d['COUNTY'];
24 $RESIDENTIALZIP5 = $d['RESIDENTIALZIP5'];
8b1d1510
PM
25 // set cookies for hard_copy.php
26 setcookie("pCOUNTY", $COUNTY);
27 setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
28 setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
05a04f80
PM
29 setcookie("pADDRESS1", "$ADDRESS");
30 setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
577a0b79 31 setcookie("pVTRID", $VTRID);
712c1004 32}else{
a2fa54c8 33 header('Location: warning_not_found.php');
712c1004
PM
34}
35?>
8cf8dc22 36 <div class='row'>
a2fa54c8 37 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
8cf8dc22
PM
38 </div>
39 <div class='row'>
a2fa54c8 40 <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
PM
41</div>
42 <div class='row'>
e3e5a039 43 <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
PM
44</div>
45 <div class='row'>
e3e5a039 46 <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
PM
47</div>
48 <div class='row'>
49 <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
PM
50</div>
51 <div class='row'>
e3e5a039 52 <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
PM
53</div>
54 <div class='row'>
e3e5a039
PM
55 <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
56 <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
57 <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
8cf8dc22
PM
58</div>
59<div class='row'>
00e1b93d 60 <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 61 <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 62</div>
b7349fe7
PM
63
64
65
66
67
68
69
70
71<?PHP include_once('footer.php');