Update enter_information.php
[clinton/MarylandElectronicPetitionSignature.git] / enter_information.php
1 <?PHP
2 if (isset($_POST)){
3 $web_first_name='';
4 if (isset($_POST['web_first_name'])){
5 if ($_POST['web_first_name'] != ''){
6 $web_first_name = $_POST['web_first_name'];
7 setcookie("web_first_name", $web_first_name);
8 }
9 }
10 $web_last_name='';
11 if (isset($_POST['web_last_name'])){
12 if ($_POST['web_last_name'] != ''){
13 $web_last_name = $_POST['web_last_name'];
14 setcookie("web_last_name", $web_last_name);
15 }
16 }
17 if(isset($_POST['web_last_name']) && isset($_POST['web_first_name'])){
18 setcookie("web_name", $web_first_name.' '.$web_last_name);
19 }
20 $web_house_number='';
21 if (isset($_POST['web_house_number'])){
22 if ($_POST['web_house_number'] != ''){
23 $web_house_number = $_POST['web_house_number'];
24 setcookie("web_house_number", $web_house_number);
25 }
26 }
27 $web_zip_code='';
28 if (isset($_POST['web_zip_code'])){
29 if ($_POST['web_zip_code'] != ''){
30 $web_zip_code = $_POST['web_zip_code'];
31 setcookie("web_zip_code", $web_zip_code);
32 }
33 }
34 //header('Location: is_the_information_correct.php');
35 }
36 include_once('header.php');
37 ?>
38
39 <form method='POST'>
40
41 <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>
42
43 <div class='col-sm-6' style='height:50px; text-align:center;'><h3>First Name</h3></div>
44
45 <div class='col-sm-6' style='height:50px; text-align:center;'><h3>Last Name</h3></div>
46
47 <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_first_name'> </div>
48
49 <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_last_name'> </div>
50
51 <div class='col-sm-6' style='height:50px; text-align:center;'><h3>House Number</h3></div>
52
53 <div class='col-sm-6' style='height:50px; text-align:center;'><h3>ZIP Code</h3></div>
54
55 <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_house_number'> </div>
56
57 <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_zip_code'> </div>
58
59 <div class='col-sm-12' style='height:50px; text-align:center;'><button type="submit" class="btn btn-success">Next</button></div>
60
61 <div class='col-sm-12' style='height:50px; text-align:center;'><button type="reset" class="btn btn-warning">Clear</button></div>
62
63 </form>
64
65 <?PHP include_once('footer.php');