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
9 header('Location: warning_incomplete.php');
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'] != ''){
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'];
25 header('Location: warning_not_found.php');
29 <div
class='col-sm-12' style
='height:100px; text-align:center;'><h2
>Is this information correct?
</h2
></div
>
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
>
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
>
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
>
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
>
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
>
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
>
60 <?PHP
include_once('footer.php');