$About_Street = $_POST["About_Street"]; } //get about about street amharic if (empty($_POST['About_Street_Amharic'])) { $errors[] = "About street in amharic should be filled"; } else { $About_Street_Amharic = $_POST["About_Street_Amharic"]; } if (empty($_POST['Street_ID'])) { $errors[] = "Street ID should be filled"; } else { $Street_ID = $_POST['Street_ID']; } if (empty($errors)) { $Street = new Street($Name, $Name_Amharic, $About_Street, $About_Street_Amharic); if ($encoder_con->Street_Exists_For_Edit($Street, $Street_ID)) { encoder_place_redirect(Error_Type::SAME_USER_NAME, $Street_ID); } $added = $encoder_con->Edit_Street($Street, $Street_ID); /** * inform the encoder about the result */ if ($added) { encoder_redirect_success($Street); } else { encoder_place_redirect(Error_Type::DATA_BASE, $Street_ID); } } else { encoder_place_redirect(Error_Type::FORM, $Street_ID); } }