title: POST form - Select as input only sending first value
body: <p>I have two identical selects, obviously named differently in order to differentiate. When I post the form to my PHP page and echo the value, it always comes out as the first option.</p>
  
  <p>So I can echo type1, and the chosen value will display, but for type2 the value will always be 0.</p>
  
  <pre><code>&lt;form action="update.php" method="post" name="tt-upd" id="tt-upd"&gt;
      &lt;input name="time1" type="time"&gt;
      &lt;select name="type1" form="tt-upd"&gt; 
          &lt;option value="0"&gt;0&lt;/option&gt; 
          &lt;option value="1"&gt;1&lt;/option&gt; 
          &lt;option value="2"&gt;2&lt;/option&gt; 
          &lt;option value="3"&gt;3&lt;/option&gt; 
          &lt;option value="4"&gt;4&lt;/option&gt; 
      &lt;/select&gt;
      &lt;input name="time2" type="time"&gt;
      &lt;select name="type2" form="tt-upd"&gt; 
          &lt;option value="0"&gt;0&lt;/option&gt; 
          &lt;option value="1"&gt;1&lt;/option&gt; 
          &lt;option value="2"&gt;2&lt;/option&gt; 
          &lt;option value="3"&gt;3&lt;/option&gt; 
          &lt;option value="4"&gt;4&lt;/option&gt; 
      &lt;/select&gt;
      &lt;input type="submit" name="submit" id="submit" value="Submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm pretty lost as I can't see anything different between the two. </p>
  
  <p>Oh and <strong>PHP</strong> code is just </p>
  
  <pre><code>echo $_POST['type1'];
  echo $_POST['type2'];
  </code></pre>
  
  <p>Update: It's not just taking the first value, regardless of where I place the 0 value in the HTML, it will always echo 0</p>
  
  <p>update.php</p>
  
  <pre><code>&lt;?php
  include 'dbconnect.php';
  
  
  echo $_POST['type1'];
  echo $_POST['type2'];
  $m1 = "";
  $t1 = "";
  
  ?&gt;
  </code></pre>
  
  <p>dbconnect.php</p>
  
  <pre><code>&lt;?php
  
  $servername = "";
  $username = "";
  $password = "";
  $dbname = "";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  echo "Connected successfully";
  ?&gt;
  </code></pre>