27.05.18 Code Keine ID Fehler mehr $kat = isset($_POST['kid']) ? $_POST['kid'] : ''; Und ja kein trim() auf id´s Anwenden.