Application Service Provider * http://www.cybergl.co.id * office@cybergl.co.id * * Wibisono Sastrodiwiryo * CEO * PT Cyber Gatra Loka * * * $Id: create.php,v 0.1 2001/04/24 12:18:38 wibi Exp $ *********************************************************************/ include("require/config.php"); require("$reqpath/common.php"); require("$reqpath/news.php"); require("$reqpath/error.php"); $menu="$incpath/menu.php"; $action="create.php"; switch($_POST['invoke']) { case "Create": if ($_POST['title'] && $_POST['content']) { insert_news($HTTP_POST_VARS); $content="News creation succeed."; $bartitle="News created"; } else {$error="80";} break; default: $button=array("Create"); $content="$incpath/form.php"; $bartitle="Create News"; } if ($error) { $content=error_message($error); $bartitle="Error $error"; } #--------------------response include("$incpath/header.php"); include("$incpath/body.php"); include("$incpath/footer.php"); ?>