} if ($nom=='') { $error_type = 2; $error_signe['nom'] = '*'; } if ($error_type > 0) { //erreur de type champ non valide $msginfo = 'Champ non valide'; break; } $values = array('id_com'=>$id, 'nom_com'=>CFunction::addslashes($nom),'urlCommune'=>CFunction::addslashes($url), 'CP'=>$cp, 'departement'=>CFunction::addslashes($departement)); $tcat = new CTableCommune($values); $tcat->update(); $msginfo = 'Commune bien modifiée'; $a = 0; break; case 6 : // Filtrer Menu if(isset($_GET['idpays'])) $idpays = $_GET['idpays']; $_SESSION['idpays'] = $idpays; break; case 66 : // Filtrer Menu if(isset($_GET['ville'])) $ville = $_GET['ville']; $_SESSION['ville'] = $ville; //print_r($_SESSION['idpays']); break; case 7 : // GROUPE if(isset($_POST['id_groupe'])) $id_groupe = $_POST['id_groupe']; if(isset($_POST['tab_user'])) $tab_user = $_POST['tab_user'];