Get_Attr("authorized")) { $dbg->Dbg(DBG::DBG, "not authorized"); exit; } $page .= << EOM; $id = validate("id", $_GET['id'], 0, "/[0-9]+/"); if ($id != 0) { $f->SetID ($id); $f->Load(); } if ($_SERVER['REQUEST_METHOD'] != "POST") { $page .= $f->Form(); } else { $page .= $f->FormHandle(); } $page .= <<