fixes for resubmission.

This commit is contained in:
Joshua Ashton
2025-03-03 15:46:38 -07:00
parent 6f63a4afb8
commit dd5ee627d8
23 changed files with 129 additions and 0 deletions
View File
+27
View File
@@ -0,0 +1,27 @@
<?php
function generateForm($fields)
{
$form = '
<form method="post">
';
foreach ($fields as $key => $ex) {
$display = ucwords(str_replace('-', ' ', $key));
$form .= '
<div class="row">
<label for="' . $key . '">' . $display . '</label>
';
$form .= '
<input id="' . $key . 'placeholder="' . $ex . '>
</div>';
}
$form .= '<input type="submit">';
$form .= '
</form>
';
return $form;
}
?>