Better formular style
This commit is contained in:
parent
baa592b81f
commit
69de37562f
3 changed files with 8 additions and 7 deletions
|
@ -23,13 +23,10 @@ if (isset($_GET['id'])) {
|
|||
<?php
|
||||
for ($i=0;$i<$nbWords;$i++) {
|
||||
$name = 'fword' . $i;
|
||||
echo '<div>';
|
||||
echo sprintf('<label for="%s">Mot %d</label>', $name, $i+1);
|
||||
echo sprintf('<input type="text" id="%s" name="%s">', $name, $name);
|
||||
echo '</div>';
|
||||
echo sprintf('<input class="cloud_words_input" type="text" id="%s" name="%s" placeholder="Mot %d">', $name, $name, $i+1);
|
||||
}
|
||||
?>
|
||||
<input type="submit" value="Submit">
|
||||
<input id="cloud_words_submit" type="submit" value="Enregistrer">
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue