简体   繁体   中英

Smarty PHP Multi-Select

I am using a piece of software which I believe is using Smarty PHP. I would like to turn one of the drop-down menus from a select to a multi-select. Here is the current code

{html_options options=$brands selected=$val['brands']}

What would be the equivalent in a multi-select?

I suppose you need to add multiple attribute to a select -tag:

<select name="" multiple>
    {html_options options=$brands selected=$val['brands']}
</select>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM