$fields = $_POST; // move the array to a variable to keep the post global in its original state unset($fields['woof']); $this->db->insert('table',$fields); unset($fields); // not needed anymore