title: html 5 datalist value
body: <p>how can I get the "id" instead of "name" when i submit the form. </p>
  
  <pre><code>&lt;input type="text" list='name' name='test1'/&gt;
                  &lt;datalist id="test1"&gt;
                      &lt;?php
                          if(!empty($data)){
                              foreach($data as $flag){
                                  echo "&lt;option label ='".$flag['id']."' &gt;".$flag['name']."&lt;/option&gt;";
                              }
                          }else{
                              echo "&lt;option&gt; empty &lt;/option&gt;";
                          }
                      ?&gt;
                  &lt;/datalist&gt;
  </code></pre>
  
  <p>I have tried using value = $flag['id'], but I still get "name" when i submit it. </p>