From 85f6ec1bc8f094e769835e9836b9fab7fb9e6ace Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Thu, 23 May 2024 11:18:21 +0200 Subject: [PATCH] output dei valori giĆ esistenti per modificarli nella pagina edit (parte 134) --- views/Products/new.php | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/views/Products/new.php b/views/Products/new.php index 4de2e4a..29fe04d 100644 --- a/views/Products/new.php +++ b/views/Products/new.php @@ -1,17 +1,7 @@ <body> <h1>New product</h1> <form method="post" action="/products/create"> - <label for="name">Name</label> - <input type="text", id="name", name="name"> - - <?php if (isset($errors["name"])): ?> - <p><?= $errors["name"] ?></p> - <?php endif; ?> - - <label for="description">Description</label> - <textarea id="description", name="description"></textarea> - - <button>Save</button> + <?php require "form.php"?> </form> </body> </hmtl> \ No newline at end of file -- Gitblit v1.8.0