Form util classes + write Kurs Methode

This commit is contained in:
2025-06-23 12:18:22 +02:00
parent 8dd24a8c1e
commit c483058b1b
6 changed files with 38 additions and 12 deletions

View File

@@ -11,12 +11,8 @@ include dirname(__DIR__).'/header.phtml';
$index = 0;
foreach ($labels as $key => $value) {
if ($key == "beschreibung") {
if($index % 2 != 0) echo '<div></div>';
}
echo '<div class="input"><label for="' . $key . '">' . $value . '</label>';
if ($key == "beschreibung") {
if($index % 2 != 0) echo '<div></div>';
echo "<textarea id=\"$key\" name=\"$key\" >";
if (isset($validData[$key])) { echo $validData[$key]; }
echo "</textarea><br>";