예제 #1
0
 }
 $sellerId = $_POST['hdnCustId'];
 $personId = $_POST['hdnPersonId'];
 $addressId = $_POST['hdnAddressId'];
 $firstName = $_POST['txtFirstName'];
 $surname = $_POST['txtSurname'];
 $phoneNumber = $_POST['txtPhone'];
 $mobileNumber = $_POST['txtMobile'];
 $emailAddress = $_POST['txtEmail'];
 $mailingList = $chkMailingList;
 $streetAddress = $_POST['txtStreetAddress'];
 $suburb = $_POST['txtSuburb'];
 $city = $_POST['txtCity'];
 $postcode = $_POST['txtPostcode'];
 $state = $_POST['txtState'];
 $result = $personCon->updatePerson($personId, $firstName, $surname, $phoneNumber, $mobileNumber, $emailAddress, $chkMailingList);
 if ($result->errorInfo()[2] == null) {
     $sellerResult = $sellerCon->updateSeller($sellerId, $personId);
     if ($sellerResult->errorInfo()[2] == null) {
         $addressResult = $addressCon->updateAddress($addressId, $streetAddress, $suburb, $city, $postcode, $state, $personId);
         if ($addressResult->errorInfo()[2] == null) {
             $editResult = true;
         } else {
             $editResult = $addressResult->errorInfo()[2];
         }
     } else {
         $editResult = $sellerResult->errorInfo()[2];
     }
 } else {
     $editResult = $result->errorInfo()[2];
 }