Commit | Line | Data |
---|---|---|
d484e8ee PM |
1 | <?PHP |
2 | ob_start(); | |
3 | include_once('header.php'); | |
4 | $head = ob_get_clean(); | |
e2bffda9 | 5 | |
d484e8ee PM |
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 | |
12 | }else{ | |
13 | header('Location: warning_incomplete.php'); | |
14 | } | |
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'] != ''){ | |
19 | $VTRID = $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']; | |
27 | }else{ | |
28 | header('Location: warning_not_found.php'); | |
29 | } | |
e2bffda9 | 30 | |
d484e8ee PM |
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){ | |
98cf3bfc PM |
37 | echo "<li>$d2[petition_name] ".$d[$field]." == $pass</li>"; |
38 | }else{ | |
39 | echo "<li>$d2[petition_name] ".$d[$field]." != $pass</li>"; | |
d484e8ee PM |
40 | } |
41 | ||
42 | } | |
e2bffda9 PM |
43 | |
44 | ||
d484e8ee | 45 | echo $head; |
e2bffda9 | 46 | ?> |
4b7a5d37 | 47 | <div class='row'> |
e2bffda9 | 48 | <div class='col-sm-12'> are you also eligible to sign each of these petitions [location name] </div> |
4b7a5d37 PM |
49 | </div> |
50 | <div class='row'> | |
8983c872 | 51 | <div class='col-sm-2'><input type="radio" id="p1" name="petition" value="p1"> </div> |
91d0a62a PM |
52 | |
53 | <div class='col-sm-10'>New Party: Maryland Green Party </div> | |
4b7a5d37 PM |
54 | </div> |
55 | <div class='row'> | |
8983c872 | 56 | <div class='col-sm-2'><input type="radio" id="p2" name="petition" value="p2"> </div> |
91d0a62a | 57 | |
6198d637 | 58 | <div class='col-sm-10'>New Party: Maryland Libertarian Party </div> |
4b7a5d37 PM |
59 | </div> |
60 | <div class='row'> | |
8983c872 | 61 | <div class='col-sm-2'><input type="radio" id="p3" name="petition" value="p3"> </div> |
91d0a62a | 62 | |
6198d637 | 63 | <div class='col-sm-10'>Charter Amendment: Baltimore Transit Equity Coalition </div> |
4b7a5d37 PM |
64 | </div> |
65 | <div class='row'> | |
8983c872 | 66 | <div class='col-sm-12'> <button type="button" class="btn btn-success">Next</button> <div> |
4b7a5d37 | 67 | </div> |
91d0a62a PM |
68 | |
69 | ||
70 | <?PHP include_once('footer.php'); |