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 VTRID from VoterList where LASTNAME = '$web_last_name' and FIRSTNAME = '$web_first_name' and HOUSE_NUMBER = '$web_house_number' and MAILINGZIP5 = '$web_zip_code'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
15 if ($d['VTRID'] != ''){
16 $VTRID = $d['VTRID'];
17 }else{
18 header('Location: warning_not_found.php');
19 }
20 ?>
21
22 <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct? (<?PHP echo $VTRID;?>)</h2></div>
23
24 <div class='col-sm-6'>First Name </div><div class='col-sm-6'></div>
25
26 <div class='col-sm-6'>Middle Name </div><div class='col-sm-6'>Edward</div>
27
28 <div class='col-sm-6'>Last Name </div><div class='col-sm-6'>Smith</div>
29
30 <div class='col-sm-6'>Full Addresss </div><div class='col-sm-6'>1232 Roadly Ct.</div>
31
32 <div class='col-sm-2'>City</div><div class='col-sm-2'>Baltimore</div>
33 <div class='col-sm-2'>County</div><div class='col-sm-2'>Baltimore City</div>
34 <div class='col-sm-2'>Zip</div><div class='col-sm-2'>21204</div>
35
36
37 <div class='col-sm-6'><button type="button" class="btn btn-success">YES</button> </div>
38
39 <div class='col-sm-6'><button type="button" class="btn btn-danger">NO</button> </div>
40
41
42
43
44
45
46
47
48
49 <?PHP include_once('footer.php');