I have 3 variables $a,$b,$c
$a=2015/15/12,
$b=12,
$C=ok,
And am trying pass that value in the following way
redirect('mycontroller/myfunction/'.$a.'/'. $b.'/'. $c.'refresh')
and its not working properly. So how can i pass this variables through redirect ??
You should seperate the second argument with a comma, thus it must be a string either one of auto, location or refresh. See the documentation for further information.
redirect('mycontroller/myfunction/'.urlencode($a).'/'. $b.'/'. $c, 'refresh');
Then within your view you can access them like below:
$a = urldecode($this->uri->segment(3));
$b = $this->uri->segment(4);
$c = $this->uri->segment(5);
you missed comma in redirect use below code
redirect('mycontroller/myfunction/'.$a.'/'. $b.'/'. $c ,'refresh')