Update is_the_information_correct.php
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
... / ...
CommitLineData
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'];
6$DOB = $_COOKIE['pDOB'];
7$PHONE = $_COOKIE['pPHONE'];
8if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
9 // ok to check for records
10}else{
11 header('Location: warning_incomplete.php');
12}
13include_once('header.php');
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'";
15$r = $petition->query($q);
16$d = mysqli_fetch_array($r);
17if ($d['VTRID'] != ''){
18 $_COOKIE['signature_status'] = 'verified';
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'];
27 // set cookies for hard_copy.php
28 setcookie("pCOUNTY", $COUNTY);
29 setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
30 setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
31 setcookie("pADDRESS1", "$ADDRESS");
32 setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
33 setcookie("pVTRID", $VTRID);
34}else{
35 $_COOKIE['signature_status'] = 'invalid';
36 header('Location: warning_not_found.php');
37}
38?>
39<div class='row'>
40 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
41</div>
42<div class='row'>
43 <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>
44</div>
45<div class='row'>
46 <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>
47</div>
48<div class='row'>
49 <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>
50</div>
51<div class='row'>
52 <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>
53</div>
54<div class='row'>
55 <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>
56</div>
57<div class='row'>
58 <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>
59</div>
60<div class='row'>
61 <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
62 <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
63 <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
64</div>
65<div class='row'>
66 <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>
67 <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>
68</div>
69
70
71
72
73
74
75
76
77<?PHP include_once('footer.php');