first
This commit is contained in:
11
form_helper.php
Normal file
11
form_helper.php
Normal 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'] . "' >";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user