php - getting cakephp to recognise my multiselect dropdown -


i have form in cakephp app uses sumoselect plugin allow me have multiselect dropdowns. when form gets posted, $this->request object(?) doesn't have values selected in it.

curiously, if remove other form fields produced form helper, data there.

<label>locations</label> <select multiple="multiple" name="data[splashpage][locations]" id="splashpagelocations">      <option value="1">kfc</option>     <option value="2">general merchants</option> </select> 

is actual form input. there no actual 'locations' field in splash_page table, locations need save elsewhere. surely doesn't make difference?

also, i've tried moving input it's first thing in form. , appears work. problem is, that's not input should appear. if can enlighten me why happening, you'll appreciated. , win lottery or something.

change name of select input

name="data[splashpage][locations][]" 

this way, can send multiple values (selected)


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -