Update is_the_information_correct.php
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
index 3940c09..5ad796e 100644 (file)
@@ -4,6 +4,7 @@ $web_last_name    = $_COOKIE['web_last_name'];
 $web_house_number = $_COOKIE['web_house_number'];
 $web_zip_code     = $_COOKIE['web_zip_code'];
 $DOB              = $_COOKIE['pDOB'];
+$PHONE             = $_COOKIE['pPHONE'];
 if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
   // ok to check for records
 }else{
@@ -14,6 +15,7 @@ $q = "select * from VoterList where LASTNAME = '$web_last_name' and FIRSTNAME =
 $r = $petition->query($q);
 $d = mysqli_fetch_array($r);
 if ($d['VTRID'] != ''){
+   $_COOKIE['signature_status'] = 'verified';
    $VTRID      = $d['VTRID'];
    $FIRSTNAME  = $d['FIRSTNAME'];
    $MIDDLENAME = $d['MIDDLENAME'];
@@ -26,29 +28,36 @@ if ($d['VTRID'] != ''){
   setcookie("pCOUNTY", $COUNTY);
   setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
   setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
+  setcookie("pADDRESS1", "$ADDRESS");
+  setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
+  setcookie("pVTRID", $VTRID);
 }else{
+   $_COOKIE['signature_status'] = 'invalid';
    header('Location: warning_not_found.php');
 }
 ?>
-  <div class='row'>
+<div class='row'>
     <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
-  </div>
- <div class='row'>
+</div>
+<div class='row'>
   <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='row'>
   <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='row'>
   <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='row'>
   <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='row'>
   <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='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Phone </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $PHONE;?></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>