Commit | Line | Data |
---|---|---|
9eb13713 PM |
1 | <?PHP |
2 | include_once('bots.php'); | |
3 | include_once('../slack.php'); | |
4 | include_once('security.php'); | |
5 | include_once('/var/www/secure.php'); //outside webserver | |
6 | include_once('functions.php'); | |
7 | include_once('header.php'); | |
8 | $FIRSTNAME=''; | |
9 | if ($_POST['FIRSTNAME']){ | |
10 | $FIRSTNAME=$_POST['FIRSTNAME']; | |
11 | } | |
12 | $LASTNAME=''; | |
13 | if ($_POST['LASTNAME']){ | |
14 | $LASTNAME=$_POST['LASTNAME']; | |
15 | } | |
16 | $q = "select * from VoterList where FIRSTNAME = '$FIRSTNAME' and LASTNAME = '$LASTNAME' "; | |
17 | $r = $petition->query($q); | |
18 | while ($d = mysqli_fetch_array($r,MYSQL_ASSOC)){ | |
19 | echo "<li>House Number: $d[HOUSE_NUMBER] Zip Code: $d[RESIDENTIALZIP5]</li>"; | |
20 | } | |
21 | ?> | |
22 | <form method='POST'> | |
23 | <input name='FIRSTNAME'><input name='LASTNAME'><input type='submit'> | |
24 | </form> | |
25 | ||
26 | <? | |
27 | ||
28 | ||
29 | include_once('footer.php'); |