This repository has been archived on 2026-06-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

40 lines
1000 B
PHP

<!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>e3_artikel_löschen</title>
<?php
require_once("bestellen.class.php")
?>
</head>
<body>
<h1>Artikel Löschen</h1>
<div class="ausgabe">
<?php
$bestell = new Bestell();
// Prüfen ob Formular abgeschickt wurde
if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['anr'])) {
$anr = $_POST['anr'];
$bestell->loeschen($anr);
}
?>
<!-- Formularfelder erstellen -->
<form method="post">
<label for="anr">Artikel: </label>
<?php echo $bestell->einfuegenSelect("artikel", "anr" ,"name", "anr"); ?>
<input type="submit" value="auswahl">
</form>
<?php
?>
</div>
</body>
</html>