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