Update is_the_information_correct.php
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
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 if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
7 // ok to check for records
8 }else{
9 header('Location: warning_incomplete.php');
10 }
11 include_once('header.php');
12 $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'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
15 if ($d['VTRID'] != ''){
16 $VTRID = $d['VTRID'];
17 $FIRSTNAME = $d['FIRSTNAME'];
18 $MIDDLENAME = $d['MIDDLENAME'];
19 $LASTNAME = $d['LASTNAME'];
20 $ADDRESS = $d['ADDRESS'];
21 $RESIDENTIALCITY = $d['RESIDENTIALCITY'];
22 $COUNTY = $d['COUNTY'];
23 $RESIDENTIALZIP5 = $d['RESIDENTIALZIP5'];
24 }else{
25 header('Location: warning_not_found.php');
26 }
27 ?>
28 <div class='row'>
29 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
30 </div>
31 <div class='row'>
32 <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>
33 </div>
34 <div class='row'>
35 <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>
36 </div>
37 <div class='row'>
38 <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>
39 </div>
40 <div class='row'>
41 <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>
42 </div>
43 <div class='row'>
44 <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
45 <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
46 <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
47 </div>
48 <div class='row'>
49 <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-success">YES</button></div>
50 <div class='col-sm-6'><button type="button" class="btn btn-danger">NO</button></div>
51 </div>
52
53
54
55
56
57
58
59
60 <?PHP include_once('footer.php');