Added submit handling

This commit is contained in:
2026-01-21 11:22:35 +01:00
parent a42ce42316
commit 3e8d29bd81
2 changed files with 12 additions and 1 deletions

11
add.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
$nome = $_POST['name'];
$classe = $_POST['classe'];
$votoScritto = $_POST['votoScritto'];
$votoOrale = $_POST['votoOrale'];
$votoPratico = $_POST['votoPratico'];
$item = [$nome,$classe,$votoScritto,$votoOrale,$votoPratico];
echo implode(';', $item)
?>

View File

@@ -10,7 +10,7 @@
<body> <body>
<div id="formDiStoGrandissimoCazzo"> <div id="formDiStoGrandissimoCazzo">
<p style="font-size: 36pt; text-align: center;">Inserimento Voti</p> <p style="font-size: 36pt; text-align: center;">Inserimento Voti</p>
<form> <form action="add.php" method="post">
<label for="name">Nome Alunno:</label> <label for="name">Nome Alunno:</label>
<input type="text" id="name" name="name" required><br> <input type="text" id="name" name="name" required><br>
<label for="classe">Classe:</label> <label for="classe">Classe:</label>