Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ronykader/a524b697ee50613eac80671195e1db34 to your computer and use it in GitHub Desktop.
Save ronykader/a524b697ee50613eac80671195e1db34 to your computer and use it in GitHub Desktop.
When you want to pass a parameter by redirect function ( Codeigniter ) the you can follow this way
$hometeam = $this->input->post('home_team');
$awayteam = $this->input->post('away_team');
if( $hometeam == $awayteam ) :
$this->session->set_flashdata('FlsMsgCheckteam', $this->alert->danger('please selete proper home team and away team'));
$id = $this->uri->segment(3);
$leagueid = $this->uri->segment(4);
redirect(base_url()."football/update_matchform/".$id.'/'.$leagueid);
endif;
@Kambe11
Copy link

Kambe11 commented Jul 13, 2018

Working

@hakikz
Copy link

hakikz commented Sep 10, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment