@@ -107,16 +79,21 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
diff --git a/add-asset.php b/add-asset.php index 0e8f787..cdc5e1b 100644 --- a/add-asset.php +++ b/add-asset.php @@ -1,27 +1,40 @@ prepare($sql); - $stmt->execute([$name, $asset_tag, $status, $location, $manufacturer, $model, $purchase_date]); + $stmt->execute($data); header("Location: index.php?success=asset_added"); exit; @@ -49,48 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {