diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-04-08 18:14:17 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-04-08 18:14:17 +0200 |
commit | 26399298164f1fb6eaa4764b543b876766dacf0a (patch) | |
tree | baa727ad02f67946125dd0392463b23c704f376e /user_guide/helpers/form_helper.html | |
parent | 57fe41072c9d97d3cba2cd5faef529ac94571bfb (diff) |
added form_multiselect() to form helper to make it easier to create multiselect fields, and to make it a bit more semantically correct to boot
Diffstat (limited to 'user_guide/helpers/form_helper.html')
-rw-r--r-- | user_guide/helpers/form_helper.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index 1958721c0..6f17a6bba 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -241,6 +241,14 @@ echo form_dropdown('shirts', $options, 'large', $js);</code> <p>If the array passed as $options is a multidimensional array, form_dropdown() will produce an <optgroup> with the array key as the label.</p> +<h2>form_multiselect()</h2> + +<p>Lets you create a standard multiselect field. The first parameter will contain the name of the field, +the second parameter will contain an associative array of options, and the third parameter will contain the +value or values you wish to be selected. The parameter usage is identical to using <kbd>form_dropdown()</kbd> above, +except of course that the name of the field will need to use POST array syntax, e.g. <samp>foo[]</samp>.</p> + + <h2>form_fieldset()</h2> <p>Lets you generate fieldset/legend fields.</p> |