Ejemplo n.º 1
0
             if ($custResult->errorInfo()[2] == null) {
                 $addressResult = $addressCon->insertAddress($_POST['txtStreetAddress'], $_POST['txtSuburb'], $_POST['txtCity'], $_POST['txtPostcode'], $_POST['txtState'], $personId);
                 if ($addressResult->errorInfo()[2] == null) {
                     $addResult = true;
                 } else {
                     $addResult = $addressResult->errorInfo()[2];
                 }
             } else {
                 $addResult = $custResult->errorInfo()[2];
             }
         } else {
             $addResult = $result['stmt']->errorInfo()[2];
         }
     }
 }
 $custCon->createPDF();
 ?>
 <!DOCTYPE html>
 <html lang="en">
 <head>
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
     <meta name="description" content="">
     <meta name="author" content="">
     <?php 
 if (isset($_POST['hdnAction'])) {
     if ($_POST['hdnAction'] == 'insert') {
         if ($addResult) {
             ?>