Welcome Guest, Not a member yet? Register   Sign In
dropdown with multiple
#1

(This post was last modified: 07-27-2018, 04:06 AM by Nome.)

Hello, I wanted to use dropdown with multiple attribute using helper forms:
PHP Code:
<?= form_dropdown('dpd', array(
 
       '1' => 'First',
 
       '2' => 'Second',
 
       '3' => 'third',
 
       '4' => 'fourth',
), 
'2''class = "form-control" multiple');?>
PHP Code:
$drpdown $this->request->getPost('dpd'); 

I choose several values, expect to get something like an array...

but instead I get:
Code:
string '3' (length=1)

Yes, this value also participates in the sample, but it is chosen last. There should be 2 more.

What have I done wrong? Thanks!
Reply


Messages In This Thread
dropdown with multiple - by Nome - 07-22-2018, 01:06 AM
RE: dropdown with multiple - by Pertti - 07-22-2018, 01:46 AM
RE: dropdown with multiple - by Nome - 07-26-2018, 12:26 PM
RE: dropdown with multiple - by dave friend - 07-26-2018, 03:09 PM
RE: dropdown with multiple - by Nome - 07-27-2018, 04:05 AM
RE: dropdown with multiple - by dave friend - 07-27-2018, 05:20 AM
RE: dropdown with multiple - by Nome - 07-29-2018, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB