id=$_POST['fr_id']; $rap->delete(); $menu=1; } if (isset($_POST["record"])) { $rap->from_array($_POST); $rap->save(); $menu=1; } if (isset($_POST['update'])) { $rap->from_array($_POST); $rap->save($_POST); $menu=1; } if (isset($_POST['upload'])) { $rap->upload(); $menu=1; } if (isset($_REQUEST["action"]) && $menu == 0) { $action=$_REQUEST ["action"]; $rap->id=(isset($_REQUEST ['fr_id']))?$_REQUEST['fr_id']:0; if ($action=="add"&&!isset($_REQUEST['fr_id'])) { echo '