can we pass values as array in 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: can we pass values as array in post (/showthread.php?tid=45329) |
can we pass values as array in post - El Forum - 09-17-2011 [eluser]Unknown[/eluser] can we access the values the posted values in controller. i have a view like below. <form id="MainForm" method="post" action="helloworld.php"> <input type="text" name="Insert['name']" />; <input type="text" name="Insert['fname']"/>; <input type="submit" value="Insert"/>; <?php print_r($InsertedRecord); ?> </form> now in my controller i assign this $data['InsertedRecord']=$this->input->post('Insert'); $this->load->view('helloworld',$data); now when i want to access in view $InsertedRecord in view as i mentioned above i get below error. i get Disallowed Key Characters when i click on submit button. if there is any other way to get the values of inputs as array for insertmethode please provide the link. regards, |