title: Submit button in HTML table not showing
body: <p>I'm trying to add a button to the end of a table dynamically populated from a database but when I try to add that simple button I only get a printed text like below in a table td instead the actual button.</p>
  <pre><code>&lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot; &gt;&lt;i class=&quot;far fa-eye&quot;&gt;&lt;/i&gt;&lt;?php echo $field7name ?&gt;&lt;/button&gt;
  </code></pre>
  <p>I know I'm doing something wrong but I really don't know what.</p>
  <p>What can I do?</p>
  <p>That is what I have for now.</p>
  <pre><code>&lt;?php 
  $query1 = &quot;SELECT * FROM ff_ppomoc WHERE idupor != 0 ORDER BY id ASC&quot;;
  
  echo '&lt;table 
         id=&quot;table1&quot; 
       data-toggle=&quot;table&quot;
               data-search=&quot;false&quot;
               data-filter-control=&quot;true&quot; 
               data-show-export=&quot;false&quot;
               data-click-to-select=&quot;false&quot;
               data-toolbar=&quot;#toolbar&quot;
         data-show-columns=&quot;false&quot;
         data-checkbox-header=&quot;false&quot;
         data-pagination=&quot;true&quot;
         data-show-pagination-switch=&quot;false&quot;
                      
         data-show-refresh=&quot;false&quot;
         data-show-toggle=&quot;false&quot;
         data-sort-name=&quot;name&quot;
         data-sort-order=&quot;desc&quot;
         
         data-actions=&quot;edit,remove&quot;
         data-url=&quot;index.php&quot;
         &gt;
        
      &lt;thead&gt;
          &lt;tr&gt;
        &lt;th data-field=&quot;id&quot;&gt;&lt;/th&gt;
              &lt;th data-field=&quot;dst&quot; data-filter-control=&quot;input&quot; data-sortable=&quot;true&quot;&gt;Davčna št.&lt;/th&gt;
              &lt;th data-field=&quot;davcna&quot; data-filter-control=&quot;input&quot; data-sortable=&quot;true&quot;&gt;Ime in priimek&lt;/th&gt;
              &lt;th data-field=&quot;imepriimek&quot; data-filter-control=&quot;select&quot; data-sortable=&quot;true&quot;&gt;Vloga v postopku&lt;/th&gt;
              &lt;th data-field=&quot;vloga&quot; data-filter-control=&quot;select&quot; data-sortable=&quot;true&quot;&gt;Oblika pomoči&lt;/th&gt;
              &lt;th data-field=&quot;oblikapomoci&quot; data-filter-control=&quot;select&quot; data-sortable=&quot;true&quot;&gt;Leto uvedbe postopka&lt;/th&gt;
        &lt;th data-field=&quot;vsebina&quot; data-filter-control=&quot;input&quot; data-sortable=&quot;false&quot;&gt;Vsebina&lt;/th&gt;
        &lt;th data-field=&quot;moznosti&quot;&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;';
  
          if ($result1 = $mysqli-&gt;query($query1)) {
      while ($row = $result1-&gt;fetch_assoc()) {
          $field1name = $row[&quot;ime&quot;];
          $field2name = $row[&quot;priimek&quot;];
          $field3name = $row[&quot;ravenpomoci&quot;];
          $field4name = $row[&quot;dst&quot;];
          $field5name = $row[&quot;idupor&quot;]; 
          $field6name = $row[&quot;vlogavpostopku&quot;]; 
          $field7name = $row[&quot;id&quot;]; 
          $field8name = $row[&quot;oblikapomoci&quot;]; 
          $field9name = $row[&quot;letouvedbepostopka&quot;]; 
          $field10name = $row[&quot;povzetek&quot;]; 
         
        ?&gt;
          
          &lt;tr&gt;
             &lt;form action=&quot;index.php?id=&lt;?php echo $id;?&gt;&quot; method=&quot;post&quot;&gt;
                  &lt;input type=&quot;hidden&quot; name=&quot;td_1&quot; value=&quot;'.$field7name.'&quot;&gt;
                  &lt;td&gt;&lt;?php echo $field7name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field4name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field1name ?&gt;  &lt;?php echo $field2name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field6name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field8name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field9name ?&gt;&lt;/td&gt; 
                  &lt;td&gt;&lt;?php echo $field10name ?&gt;&lt;/td&gt; 
                  &lt;?php $td1 = $_POST['td_1'] ?&gt;
                  &lt;td&gt;&lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot; &gt;&lt;i class=&quot;far fa-eye&quot;&gt;&lt;/i&gt;&lt;?php echo $field7name ?&gt;&lt;/button&gt;&lt;/td&gt;
             &lt;/form&gt;
            &lt;/tr&gt;
    
        &lt;?php
    
      }
      $result-&gt;free();
  } 
  
  
  
  
  ?&gt;  
  
  </code></pre>