<?php include './function.php'; #Erfasse Methode $methode = $_GET['fmet']; $kat = new kategorie(); $obj = new object(); $att = new attribut(); $form = new form(); $text = new text(); if ($methode == 1) { #Erste methode Kategorie $katname = $_POST['katname']; $katkurz = $_POST['katkurz']; $katlang = $_POST['katlang']; $kat->neu($katname, $katkurz, $katlang); $form->start("POST", "index.php"); $form->end($text->view_nq("zuindex")); } if ($methode == 2) { #Zweite methode Attribute $atname = $_POST['atname']; $atkurz = $_POST['atkurz']; $atlang = $_POST['atlang']; $aistext = $_POST['aistext']; $att->neu($atname, $atkurz, $atlang, $aistext); $form->start("POST", "index.php"); $form->end($text->view_nq("zuindex")); } if ($methode == 3) { #Dritte methode Objekt einfügen