Implementazione form aggiunta

This commit is contained in:
2025-11-13 09:10:46 +01:00
parent a28fdb198b
commit f38f06bef6
3 changed files with 33 additions and 3 deletions

20
add.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aggiungi pizza</title>
<script src="script.js"></script>
</head>
<body>
<form id="addForm" onsubmit="handleAddPizza(event)" >
<label for="id">ID Pizza</label><br>
<input type="number" id="id" name="id" required><br>
<label for="name">Nome</label><br>
<input type="text" id="name" name="name" required><br>
<label for="prezzo">Prezzo</label><br>
<input type="number" step="0.01" id="price" name="price" required><br>
<input type="submit" value="Aggiungi">
</form>
</body>
</html>