fixes for resubmission.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user