This commit is contained in:
2025-03-14 17:42:58 +03:00
commit a283d2cf37
13 changed files with 395 additions and 0 deletions

11
form_helper.php Normal file
View File

@ -0,0 +1,11 @@
<?php
function printForm(array $inputsArr): void
{
if ($_GET['show_form']) {
foreach ($inputsArr as $key => $input) {
echo "</br><label for='$key'>" . $input['label'] . "</label>";
echo "<input type='" . $input['type'] . "' name='$key' id='" . $input['id'] . "' class='" . $input['class'] . "' >";
}
}
}