I wanted to give my submit button a value. I have watched this video,
https://www.youtube.com/watch?v=FUZ_GGSggLA
but I am using CodeIgniter so it gave me an error.
I have already done this:
<?php
  echo form_open('Mycontroller/thisfunction/'.$this->uri->segment(3));
?>
        <button class="btn btn-info fa fa-save" type="submit" name ="1">  Save</button>
        <button class="btn btn-primary fa fa-save" type="submit" name ="2">  Save1</button>
    <?php
      echo form_close();
    ?>
and my controller:
public function thisfunction(){
    if($_POST['1']){
        echo "1";
    }else if($_POST['2']){
        echo "2";
    }
}
but I got the error Message: Undefined offset: 1 and Message: Undefined offset: 2.. 
I need this code because I will be using it like this:
    if(THIS BUTTON IS USED){
        redirect it to this page
    }else if(THIS BUTTON IS USED){
        redirect it to other page
    }
 
     
     
    