LoggedIn())header('location: login.php'); $Err1=""; $Err2=""; if(isset($_POST["Save"]) && $_POST["Save"]==1){ $CatID=$App->SaveCat($_POST); $Data=$App->GetCat($CatID); }else{ $CatID = intval($_POST["ID"]); if($CatID == 0){ $CatID = intval($_GET["id"]); } if($CatID > 0){ $Data=$App->GetCat($CatID); }else{ $Data=$_POST; } } ?>