Update petition.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'];
6if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
7 // ok to check for records
8}else{
a2fa54c8 9 header('Location: warning_incomplete.php');
712c1004
PM
10}
11include_once('header.php');
a2fa54c8 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'";
712c1004
PM
13$r = $petition->query($q);
14$d = mysqli_fetch_array($r);
a8cce358 15if ($d['VTRID'] != ''){
a2fa54c8
PM
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'];
712c1004 24}else{
a2fa54c8 25 header('Location: warning_not_found.php');
712c1004
PM
26}
27?>
8cf8dc22 28 <div class='row'>
a2fa54c8 29 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
8cf8dc22
PM
30 </div>
31 <div class='row'>
a2fa54c8 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>
8cf8dc22
PM
33</div>
34 <div class='row'>
e3e5a039 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>
8cf8dc22
PM
36</div>
37 <div class='row'>
e3e5a039 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>
8cf8dc22
PM
39</div>
40 <div class='row'>
e3e5a039 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>
8cf8dc22
PM
42</div>
43 <div class='row'>
e3e5a039
PM
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>
8cf8dc22
PM
47</div>
48<div class='row'>
00e1b93d 49 <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 50 <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 51</div>
b7349fe7
PM
52
53
54
55
56
57
58
59
60<?PHP include_once('footer.php');