newItem($_POST["anzahl"], $_POST["einheit"], $_POST["name"]); header("Location: /list"); break; case 'multiple': $shopping->newItems($_POST["list"]); break; case 'del': $shopping->removeChecked(); break; case 'check': $shopping->check($_POST["id"], $_POST["status"]); break; case 'export': echo json_encode($shopping); break; default: // code... break; } ?>