diff --git a/class/form.php b/class/form.php
index bd85a4a5c5426963d3b544889cc18de8c5184c30..4baf18ade945e18723e202de8aee326bdcac287f 100644
--- a/class/form.php
+++ b/class/form.php
@@ -25,6 +25,13 @@ class Form {
 			}
 
 			// If all validators ok, commit
+			if($success) {
+				if($this->action == "Modifier") {
+					$this->object->update();
+				} else {
+					$this->object->insert();
+				}
+			}
 		} else {
 			$post = false;
 		}
diff --git a/class/objet.php b/class/objet.php
index 6de081941456a3e259fa44dc3dba751112328938..6f993f4c3a9ead4e3348f80e3912466638574855 100644
--- a/class/objet.php
+++ b/class/objet.php
@@ -51,7 +51,7 @@ class Objet
         return $ret;
     }
 
-    public static function insertAll()
+    public static function insert()
     {
         $className = get_called_class();
         $dbName = lcfirst($className);