title: Read table and output via echo
body: <p>In my first piece of code you can see how I build a table with the echo output. Everything works fine. </p>
  
  <pre><code> echo "&lt;form method=\"post\" action=''&gt;";
      echo "&lt;table border=\"1\"&gt;";
      foreach($pdo -&gt; query($sqlSpielerNamen) as $row){
          echo "&lt;tr&gt;";
          echo "&lt;td style=\"font-size: 10;\"&gt;".$row['Player_ID']."&lt;/td&gt;";
          echo "&lt;td style=\"font-size: 10;\"&gt;".$row['SpielerName']."&lt;/td&gt;";
          echo "&lt;td syle=\"font-size: 10 ;\"&gt;&lt;input name='note' type='text' class='textfield' id='note_id' value='$spielID' /&gt;";
          echo "&lt;td syle=\"font-size: 10 ;\"&gt;&lt;input name='tore' type='text' class='textfield' id='tore_id' value='$spielID' /&gt;";
          echo "&lt;/tr&gt;";
      }
      echo "&lt;/table&gt;";
      echo "&lt;br&gt;&lt;br&gt;&lt;input type=\"submit\" name=\"submit_eingabemaske\" value=\"Abschicken\"&gt;\n";
      echo "&lt;/form&gt;";
  </code></pre>
  
  <p>But now, I need a new output from this table after clicking on the submit button.
  I need the first field 'Player_ID' and the last two fields 'note' and 'tore'. </p>
  
  <p>At the moment my output looks like this. But I know that this is not the correct solution. </p>
  
  <pre><code>if (isset($_POST['submit_eingabemaske'])){
  $Po = $_POST["tore"];
  foreach ($row as $item){
              echo $Po;
  }}
  </code></pre>
  
  <p>What I have to do in the second piece of code, that my result will be correct. How can I achieve this? Another problem for my is, how to call the first field 'Player_ID'? The fields 'tore' and 'name' I can get with $POST["tore"]...</p>