Update is_the_information_correct.php
[clinton/MarylandElectronicPetitionSignature.git] / enter_information.php
dissimilarity index 88%
index 9c5c773..e6e7e76 100644 (file)
@@ -1,27 +1,54 @@
-<?PHP include_once('header.php');  ?>
-
-  
- <div class='col-sm-12'> please enter your name and zip code as it appears on your Maryland Voter Registration </div>
-  
-  <div class='col-sm-6'>first name </div>
-  
-  <div class='col-sm-6'>last name </div>
-  
-  
-    <div class='col-sm-6'><input> </div>
-  
-  <div class='col-sm-6'><input> </div>
-  
-  <div class='col-sm-6'>house number</div>
-  
-  <div class='col-sm-6'>zip code </div>
-  
-  
-    <div class='col-sm-6'><input> </div>
-  
-  <div class='col-sm-6'><input> </div>
-  
-  <div class='col-sm-12'> <input type='submit'></div>
-
-
-<?PHP include_once('footer.php');
+<?PHP
+if (isset($_POST)){
+  $web_first_name='';
+  if (isset($_POST['web_first_name'])){
+     $web_first_name = $_POST['web_first_name'];
+     setcookie("web_first_name", $web_first_name, time()+300);
+  }
+  $web_last_name='';
+  if (isset($_POST['web_last_name'])){
+     $web_last_name = $_POST['web_last_name'];
+     setcookie("web_last_name", $web_last_name, time()+300);
+  }
+  $web_house_number='';
+  if (isset($_POST['web_house_number'])){
+     $web_house_number = $_POST['web_house_number'];
+     setcookie("web_house_number", $web_house_number, time()+300);
+  }
+  $web_zip_code='';
+  if (isset($_POST['web_zip_code'])){
+     $web_zip_code = $_POST['web_zip_code'];
+     setcookie("web_zip_code", $web_zip_code, time()+300);
+  }
+  setcookie("web_name", $web_first_name.' '.$web_last_name, time()+300);
+  header('Location: is_the_information_correct.php');
+}
+include_once('header.php');
+?>
+
+<form method='POST'>
+  
+  <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>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><h3>First Name</h3></div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><h3>Last Name</h3></div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_first_name'> </div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_last_name'> </div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><h3>House Number</h3></div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><h3>ZIP Code</h3></div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_house_number'> </div>
+  
+  <div class='col-sm-6' style='height:50px; text-align:center;'><input name='web_zip_code'> </div>
+  
+  <div class='col-sm-12' style='height:50px; text-align:center;'><button type="submit" class="btn btn-success">Next</button></div>
+
+  <div class='col-sm-12' style='height:50px; text-align:center;'><button type="reset" class="btn btn-warning">Clear</button></div>
+</form>
+
+<?PHP include_once('footer.php');