how can i pass value of textbox into code iginator controller after submit. i get Disallowed Key Characters message. i have array of controls.
or if you could provide some tips on how to get the posted values in controllers .
in view
<form method="post">
<input type="text" name="Insert['name']"/>
<input type="text" name="Insert['fname']"/>
<input type="submit" value="Insert"/>
</form>
in controller
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Helloworld extends CI_Controller {
public function index() {
$data['InsertedRecord']=$this->input->post('Insert['name']');
$this -> load -> view('helloworld', $data);
}
}
regards,