Need help posting drop down form into DB via $_POST - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Need help posting drop down form into DB via $_POST (/showthread.php?tid=45904) |
Need help posting drop down form into DB via $_POST - El Forum - 10-10-2011 [eluser]vincej[/eluser] Hi ! I keep getting a PHP error message "Undefined Index: DeliveryID" coming off my model function createCustomer() featured below. The form and the model function works great with all the other static form_input I have ( not included for clarity ) however I keep getting the above error message with the drop_down. Form_dropdown : Code: <?php Code: function createCustomer(){ I have triple checked the DB to ensure things are spelt right and capitalised right. I have also tried changing 'DeliveryID' to $DeliveryID and that didn't help. My theory is that I have got the syntax wrong when using a $_POST and the $DeliveryID array since essentially I am trying to put an array into an array then hope that the $this->db->insert() function pulls out the value correctly. I have tried checking the forums adn wiki to no avail. any ideas - this shoudl be a beginner level solution - I hope ! :o) MANY THANK vincej |