title: CodeIgniter - passing button value to form
body: <p>I have this code (view):</p>
  
  <blockquote>
  <pre><code>      &lt;?php echo $own['own'] ? form_open('games/updateOwn', 'id="ownGame"') : 
               form_open('games/setOwn', 'id="ownGame"'); ?&gt;
              &lt;input type="hidden" name="userid" value="&lt;?php echo $userid; ?&gt;"&gt;
              &lt;input type="hidden" name="gameid" value="&lt;?php echo $game['id'];?&gt;"&gt;
              &lt;button value="1" name="own[]"&gt;Mam/miałem&lt;/button&gt;
              &lt;button value="2" name="own[]"&gt;Chcę mieć&lt;/button&gt;
              &lt;button value="3" name="own[]"&gt;Nie interesuje mnie&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>
  </blockquote>
  
  <p>It is simple form for placing ownership in db. Model for that:</p>
  
  <pre><code>public function Own($data) {
          $gameid = $this-&gt;input-&gt;post('gameid');
          $userid = $this-&gt;input-&gt;post('userid');
          $own = $this-&gt;input-&gt;post('own');
  
          $this-&gt;db-&gt;cache_delete('games',$gameid);
  
          $ins_own = array(
              'user_id' =&gt; $userid,
              'game_id' =&gt; $gameid,
              'own' =&gt; $own
          );
  
          $q = $this-&gt;db-&gt;insert('ownership', $ins_own);
      }
  </code></pre>
  
  <p>And my problem is, <code>own</code> (<code>button</code>'s value) isn't submitted. How can I solve this?</p>