$About_Street = "Not Filled"; } /** * get the about the street in amharic */ if (!empty($_POST["About_Street_Amharic"])) { $About_Street_Amharic = $_POST["About_Street_Amharic"]; } else { $About_Street_Amharic = "Not Filled"; } if (empty($errors)) { //make a street object $Street_C = new Street($Street_Name, $Street_Name_Amharic, $About_Street, $About_Street_Amharic); //check if the street exists in the database //if the street exists redirect, saying the street is repetition if ($encoder_con->Street_Exists($Street_C)) { encoder_place_redirect(Error_Type::SAME_REGISTERED_DATA); } //add the street to the database $added = $encoder_con->Add_Street($Street_C); if ($added) { encoder_redirect_success($Street_C); } else { encoder_place_redirect(Error_Type::DATA_BASE); } } else { encoder_place_redirect(Error_Type::FORM); } } } }