3 include_once('header.php');
4 $head = ob_get_clean();
6 $web_first_name = $_COOKIE['web_first_name'];
7 $web_last_name = $_COOKIE['web_last_name'];
8 $web_house_number = $_COOKIE['web_house_number'];
9 $web_zip_code = $_COOKIE['web_zip_code'];
10 if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
11 // ok to check for records
13 header('Location: warning_incomplete.php');
15 $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'";
16 $r = $petition->query($q);
17 $d = mysqli_fetch_array($r);
18 if ($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'];
28 header('Location: warning_not_found.php');
31 $q2 = "select * from from petitions";
32 $r2 = $petition->query($q2);
33 while($d2 = mysqli_fetch_array($r2)){
34 $field = $d2['eligibleVoterListField'];
35 $pass = $d2['eligibleVoterListEquals'];
36 if ($d[$field] == $pass){
37 echo "<li>$d2[petition_name] ".$d[$field]." == $pass</li>";
39 echo "<li>$d2[petition_name] ".$d[$field]." != $pass</li>";
48 <div
class='col-sm-12'> are you also eligible to sign each of these petitions
[location name
] </div
>
51 <div
class='col-sm-2'><input type
="radio" id
="p1" name
="petition" value
="p1"> </div
>
53 <div
class='col-sm-10'>New Party
: Maryland Green Party
</div
>
56 <div
class='col-sm-2'><input type
="radio" id
="p2" name
="petition" value
="p2"> </div
>
58 <div
class='col-sm-10'>New Party
: Maryland Libertarian Party
</div
>
61 <div
class='col-sm-2'><input type
="radio" id
="p3" name
="petition" value
="p3"> </div
>
63 <div
class='col-sm-10'>Charter Amendment
: Baltimore Transit Equity Coalition
</div
>
66 <div
class='col-sm-12'> <button type
="button" class="btn btn-success">Next
</button
> <div
>
70 <?PHP
include_once('footer.php');