title: Replicate form select box by array
body: <p>one last doubt, the foreach is not print in the box</p>
  
  <p>The foreach is outside of the table when is in the middle of the code.</p>
  
  <p><a href="https://i.stack.imgur.com/W3Szo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W3Szo.png" alt="enter image description here"></a></p>
  
  <p>The option values on the table are empty, when is printing outside of the table.</p>
  
  <p><a href="https://i.stack.imgur.com/ezJeM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ezJeM.png" alt="enter image description here"></a></p>
  
  <pre><code>$options = array( "0.00","0.05","0.10","0.15","0.20","0.25","0.30","0.35","0.40","0.45","0.50","0.55","0.60","0.65","0.70","0.75","0.80","0.85","0.90","0.95","1" ); // ◄■■ OPTIONS ARE STATIC (ALWAYS THE SAME).
  
          $table = $table."&lt;/tr&gt;";
  
          for($i = 0 ; $i &lt;$uCount ; $i++ ){
          $table = $table."&lt;tr&gt;&lt;td&gt;".$utilizador[$i]."&lt;/td&gt;";
  
          for($j=0;$j&lt;$carCount;$j++){
          $val= htmlspecialchars($s2[$j], ENT_HTML5 | ENT_COMPAT, 'UTF-8');
  
          $table = $table."&lt;td&gt;"."&lt;select name=\'corp_resp&amp;{$row_menuid['menuId']}&amp;{$_SESSION['UtilizadorID']}&amp;{$dateTime}&amp;{$toEchosave}'.$val.'_'.$utilizador[$i].'\&gt;";
          foreach ($options as $opt)
          {
                 echo "&lt;option value='$opt'&gt;$opt&lt;/option&gt;\n";
                 echo "&lt;/select&gt;\n"."&lt;/td&gt;";
            }
          }
      $table = $table."&lt;/tr&gt;";
  }
  $table = $table."&lt;/form&gt;";
  echo $table;
  </code></pre>