title: Tag - Save multiple input value in a single POST
body: <p>I'm using <a href="http://aehlke.github.io/tag-it/" rel="nofollow">Jquery Tag it</a> and I would like to save the entered tag into my DB.</p>
  
  <p><strong>In HTML</strong></p>
  
  <pre><code>&lt;ul id="myTags" name="myTags"&gt;&lt;/ul&gt;  
  </code></pre>
  
  <p>When I entered a new tag , it will auto generate a <code>&lt;li&gt;</code> and <code>&lt;input hidden&gt;</code> ,
  But all the generated <code>&lt;input hidden&gt;</code> are same <strong>name="tags"</strong> only the <strong>value</strong> are different , then when I <code>$_POST</code> and try to <code>print_r</code> , the result are only the last value that I entered.</p>
  
  <p>How do I get all the value ? or any other good suggestion ? Thanks</p>
  
  <pre><code>    public function actionSubmit(){
  
      $token = $_POST['YII_CSRF_TOKEN'];              
      if ($token !== Yii::app()-&gt;getRequest()-&gt;getCsrfToken()){
  
          Yii::app()-&gt;end();
      }
      $app_id = Yii::app()-&gt;user-&gt;getState('app_id');
      $tags = $_POST['tags'];
  
  
      $model = Games::model()-&gt;findByAttributes(array('id'=&gt;$app_id));
      $model-&gt;keywords = $tags;
      $model-&gt;save();
  
      if($model-&gt;save()){
          print_r("ok");  
      }else{
          print_r("no");  
      }
  }
  </code></pre>