Skip to content

Commit

Permalink
added a multi select box to BasicForm example
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainN committed Oct 29, 2013
1 parent 43f368a commit dc03402
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion examples/BasicForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@
<option value="4">Four</option>
</select>
</p>
<p>
<label for="multi">Select some things</label>
<select name="multi[]" id="multi" multiple>
<optgroup>
<option value="1">Once</option>
<option>Two</option>
<option value="3" selected>Three</option>
<option value="4">Four</option>
</optgroup>
</select>
</p>
<p>
<label for="textTest">Enter some text</label><br>
<textarea id="textTest" name="textTest" required></textarea>
Expand All @@ -98,6 +109,7 @@
<pre>
isRequest: <?php var_dump( $form->is_request() ) ?>
isValid: <?php var_dump( $form->isValid ) ?>
data: <?php var_dump( $form->data ) ?>

<?php print_r( $form->validators ) ?>

Expand All @@ -107,4 +119,4 @@
</pre>

</body>
</html>
</html>

0 comments on commit dc03402

Please sign in to comment.