I am using codelgniter and i want to pass the below 3 parameters to site_url().But this take only the method name not the parameters…. How can i pass these parameters. Please help me
function report_del() {
$island = $this->tables($this->input->post('island'));
$prefix = $this->tables($this->input->post('prefix'));
$date = $this->tables($this->input->post('date'));
redirect(site_url('admin/admin/dateandprefix/').$date.'/'.$prefix.'/'.$island);
//$segments = array('admin/admin/dateandprefix/',$date,$prefix,$island);
//redirect(site_url($segments));
}
If the code is copy pasted, there is an error in the single quote