Commit | Line | Data |
---|---|---|
4f46b65a | 1 | <?PHP |
3ce0d58f PM |
2 | if (isset($_POST)){ |
3 | $web_first_name=''; | |
4 | if (isset($_POST['web_first_name'])){ | |
5 | $web_first_name = $_POST['web_first_name']; | |
6 | setcookie("web_first_name", $web_first_name, time()+300); | |
7 | } | |
8 | $web_last_name=''; | |
9 | if (isset($_POST['web_last_name'])){ | |
10 | $web_last_name = $_POST['web_last_name']; | |
11 | setcookie("web_last_name", $web_last_name, time()+300); | |
12 | } | |
13 | $web_house_number=''; | |
14 | if (isset($_POST['web_house_number'])){ | |
15 | $web_house_number = $_POST['web_house_number']; | |
16 | setcookie("web_house_number", $web_house_number, time()+300); | |
17 | } | |
18 | $web_zip_code=''; | |
19 | if (isset($_POST['web_zip_code'])){ | |
20 | $web_zip_code = $_POST['web_zip_code']; | |
21 | setcookie("web_zip_code", $web_zip_code, time()+300); | |
22 | } | |
3ce0d58f | 23 | setcookie("web_name", $web_first_name.' '.$web_last_name, time()+300); |
b2d66a11 | 24 | header('Location: is_the_information_correct.php'); |
3ce0d58f | 25 | } |
aa92c8ea | 26 | include_once('header.php'); |
4f46b65a PM |
27 | ?> |
28 | ||
29 | <form method='POST'> | |
30 | ||
31 | <div class='col-sm-12' style='height:100px; text-align:center;'><h3>Please enter your Name and ZIP Code as it appears on your Maryland Voter Registration</h3></div> | |
09a581dc | 32 | |
c364f2c3 | 33 | <div class='col-sm-6' style='height:50px; text-align:center;'><h3>First Name</h3></div> |
09a581dc | 34 | |
c364f2c3 | 35 | <div class='col-sm-6' style='height:50px; text-align:center;'><h3>Last Name</h3></div> |
09a581dc | 36 | |
3ce0d58f | 37 | <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_first_name'> </div> |
09a581dc | 38 | |
3ce0d58f | 39 | <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_last_name'> </div> |
09a581dc | 40 | |
c364f2c3 | 41 | <div class='col-sm-6' style='height:50px; text-align:center;'><h3>House Number</h3></div> |
09a581dc | 42 | |
c364f2c3 | 43 | <div class='col-sm-6' style='height:50px; text-align:center;'><h3>ZIP Code</h3></div> |
09a581dc | 44 | |
3ce0d58f | 45 | <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_house_number'> </div> |
09a581dc | 46 | |
3ce0d58f | 47 | <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_zip_code'> </div> |
09a581dc | 48 | |
9e59a37d | 49 | <div class='col-sm-12' style='height:50px; text-align:center;'><button type="submit" class="btn btn-success">Next</button></div> |
09a581dc | 50 | |
9e59a37d | 51 | <div class='col-sm-12' style='height:50px; text-align:center;'><button type="reset" class="btn btn-warning">Clear</button></div> |
4f46b65a PM |
52 | </form> |
53 | ||
09a581dc | 54 | <?PHP include_once('footer.php'); |