title: PhP Select not sending value
body: <pre><code>                &lt;?php
  
                      include ("forms/coneccao_feed.php");
                          $query = "SELECT id as ID, nome as Nome FROM provedor";
                          $query1= "Select MAX(id) as ID From provedor";
                          $ultprovedor = mysqli_query ($ligacao_feed, $query1);
                          $ultimo_provedor = mysqli_fetch_row($ultprovedor);
                          $provedores = mysqli_query($ligacao_feed, $query);
                          ?&gt;
                              &lt;select name="provedor"&gt;
                              &lt;?php
                                  while($provedor=mysqli_fetch_array($provedores)){                               
                                      if ($provedor['ID'] == $ultimo_provedor['0']){                              
                                      ?&gt;
                                          &lt;option value="&lt;?php echo $provedor['ID']; ?&gt;" selected&gt;&lt;?php echo $provedor['Nome'] ?&gt;&lt;/option&gt;
                                          &lt;?php
                                                  }else{                              
                                                  ?&gt;
                                          &lt;option value="&lt;?php echo $provedor['ID']; ?&gt;"&gt;&lt;?php echo $provedor['Nome'] ?&gt;&lt;/option&gt;
                                          &lt;?php
                                                  }
                                  }?&gt;
                              &lt;/select&gt;   
  </code></pre>
  
  <p>I searched everywhere but cant find an answer, when I submit it does not send anything, and i tried to echo in the form but it also does nothing.</p>
  
  <pre><code>        &lt;?php
              include ("forms/coneccao_feed.php");
              $id_provedor = $_POST['id'];
              $mensagem = $_POST['msg'];
              $query = "Select nome as Nome From provedor where id='".$id_provedor."'";
              echo $query;
              echo "&lt;br&gt;".$mensagem."&lt;br&gt;".$id_provedor;
              //$res_query = ($ligacao_feed, $query);
  
          ?&gt;
  </code></pre>