Created
March 2, 2017 11:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working