From 26399298164f1fb6eaa4764b543b876766dacf0a Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 8 Apr 2009 16:14:17 +0000 Subject: 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 --- user_guide/changelog.html | 1 + user_guide/helpers/form_helper.html | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'user_guide') diff --git a/user_guide/changelog.html b/user_guide/changelog.html index e4d57f6b1..b5d3fe7d9 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -79,6 +79,7 @@ SVN Revision:

  • Helpers
  • 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);

    If the array passed as $options is a multidimensional array, form_dropdown() will produce an <optgroup> with the array key as the label.

    +

    form_multiselect()

    + +

    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 form_dropdown() above, +except of course that the name of the field will need to use POST array syntax, e.g. foo[].

    + +

    form_fieldset()

    Lets you generate fieldset/legend fields.

    -- cgit v1.2.3-24-g4f1b