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
Post a Comment