CodeIgniter select_value in form_dropdown

前端 未结 6 1819
-上瘾入骨i
-上瘾入骨i 2020-12-18 12:31

I have a dropdown field in my form and when I hit submit the form goes through validation and if an error happens, return all the value. This work expect for my dropdown meu

6条回答
  •  情深已故
    2020-12-18 13:04

    Remove the set_value('gender')

    As in:

    
    

    As Trung was mentioning you can pass an array as the 3rd parameter for multiple selections.

提交回复
热议问题