Update petition.php
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
index a47575d..f7c1dd4 100644 (file)
@@ -3,6 +3,7 @@ $web_first_name   = $_COOKIE['web_first_name'];
 $web_last_name    = $_COOKIE['web_last_name'];
 $web_house_number = $_COOKIE['web_house_number'];
 $web_zip_code     = $_COOKIE['web_zip_code'];
+$DOB              = $_COOKIE['pDOB'];
 if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
   // ok to check for records
 }else{
@@ -21,6 +22,11 @@ if ($d['VTRID'] != ''){
    $RESIDENTIALCITY   = $d['RESIDENTIALCITY'];
    $COUNTY            = $d['COUNTY'];
    $RESIDENTIALZIP5   = $d['RESIDENTIALZIP5'];
+  // set cookies for hard_copy.php
+  setcookie("pCOUNTY", $COUNTY);
+  setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
+  setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
+  setcookie("pVTRID", $VTRID);
 }else{
    header('Location: warning_not_found.php');
 }
@@ -32,22 +38,25 @@ if ($d['VTRID'] != ''){
   <div class='col-sm-6' style='height:50px; text-align:center;'>First Name</div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $FIRSTNAME;?></div>
 </div>
  <div class='row'>
-  <div class='col-sm-6'>Middle Name </div><div class='col-sm-6'>Edward</div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Middle Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $MIDDLENAME;?></div>
 </div>
  <div class='row'>
-  <div class='col-sm-6'>Last Name </div><div class='col-sm-6'>Smith</div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Last Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $LASTNAME;?></div>
 </div>
  <div class='row'>
-  <div class='col-sm-6'>Full Addresss </div><div class='col-sm-6'>1232 Roadly Ct.</div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Date of Birth </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $DOB;?></div>
 </div>
  <div class='row'>
-  <div class='col-sm-2'>City</div><div class='col-sm-2'>Baltimore</div>
-  <div class='col-sm-2'>County</div><div class='col-sm-2'>Baltimore City</div>
-  <div class='col-sm-2'>Zip</div><div class='col-sm-2'>21204</div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Full Addresss </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $ADDRESS;?></div>
+</div>
+ <div class='row'>
+  <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
+  <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
+  <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
 </div>
 <div class='row'>
-  <div class='col-sm-6'><button type="button" class="btn btn-success">YES</button></div>
-  <div class='col-sm-6'><button type="button" class="btn btn-danger">NO</button></div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-success" onclick="window.location.href='eligible.php'">YES</button></div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-danger" onclick="window.location.href='reset.php'">NO</button></div>
 </div>