Get Values from Multiple select Box In Codeigniter
I am not sure but try this to get all tars
foreach($this->input->post("tar") as $tar){ echo $tar;}
okay i got the answer...
here is i am wrong,just i have to define the array in controller:
$target['tar'] = $this->input->post('tar');print_r($target);die;
You can also use Core PHP style,because Core PHP is the top of all framework:
if(isset($_POST['tar'])){foreach ($_POST['tar'] as $tar_value){ print "You are selected $tar_value<br/>"; }}