![]() |
Getting array parameters from 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: Getting array parameters from POST (/showthread.php?tid=24245) |
Getting array parameters from POST - El Forum - 11-04-2009 [eluser]derekt[/eluser] I'm writing a page to reorder images using JQuery and Ajax to POST the image order back to my controller so I can update the database; I've got the page returning this via POST: POST item[] 17 item[] 1 item[] 9 However, the database isn't updating. I'd really appreciate some advice on what I'm missing here. The controller function looks like this: Code: function index () I tried setting $config['enable_query_strings'] = TRUE; to no avail. Any suggestions?? Thanks! Getting array parameters from POST - El Forum - 11-04-2009 [eluser]umefarooq[/eluser] first get the value of your post data and then loop Code: $sorts = $this->input->post('item'); Getting array parameters from POST - El Forum - 11-04-2009 [eluser]derekt[/eluser] Worked like a charm- many thanks umefarooq! Getting array parameters from POST - El Forum - 11-04-2009 [eluser]saidai jagan[/eluser] yeah thats fine ![]() |