Voll Upload SGD Fachinformatiker PHP
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user