Form util classes + write Kurs Methode
This commit is contained in:
@@ -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>";
|
||||
|
||||
@@ -31,6 +31,7 @@ include dirname(__DIR__).'/header.phtml';
|
||||
|
||||
<input type="hidden" name="controller" value="contact">
|
||||
<input type="hidden" name="do" value="validateForm">
|
||||
<input type="submit" name="submit" value="Absenden"></form>
|
||||
<input type="submit" name="submit" value="Absenden">
|
||||
</form>
|
||||
|
||||
<?php include dirname(__DIR__).'/footer.phtml'; ?>
|
||||
Reference in New Issue
Block a user