// into the database //---------------------------------------- if (isset($_POST['confirm'])) { try { $Ledger->verify($_POST); } catch (Exception $e) { alert($e->getMessage()); $p_msg = $e->getMessage(); $correct = 1; } if (!isset($correct)) { echo '<div id="jrn_name_div">'; echo '<h2 id="jrn_name" style="display:inline">' . $Ledger->get_name() . '</h2>'; echo '</div>'; echo '<div class="content">'; $a = $Ledger->insert($_POST); echo '<h1>' . _('Enregistrement') . ' </h1>'; echo '<div class="content">'; echo $a; echo '</div>'; echo '</div>'; echo $Ledger->button_new_operation(); return; } } //---------------------------------------- // Correct the operations //---------------------------------------- if (isset($_POST['correct'])) { $correct = 1; }