title: Form Submit button doesnt work with PHP loop
body: <p>I have this code</p>
  
  <pre><code>&lt;tbody&gt;
              &lt;form action="dsf.php" method="post"&gt;
              &lt;?PHP if(mysql_num_rows($leerdb) &gt; 0) {while ($rs = mysql_fetch_row($leerdb)) {?&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;input name="idecod[]" type="checkbox" value="&lt;?php echo $rs[0]; ?&gt;"  /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[0]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[1]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[2]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[3]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[4]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $rs[5]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;BsF. &lt;?php echo $rs[6]; ?&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;?PHP }}?&gt;
                  &lt;input class="enviar" type="submit" name="enviar" id="enviar" value="Editar Asesor" /&gt;
          &lt;/form&gt;
               &lt;/tbody&gt;
  </code></pre>
  
  <p>I do not know why the submit button doesnt work. When I click on it, nothing happend.</p>
  
  <p>It seems that something in the php loop is making the mess.. But as I know, PHP goes first than HTML, so, when FORM HTML comes, PHP code was already executed.</p>
  
  <p>Where is my error.??</p>
  
  <p>Thanks in advance.</p>
  
  <p>Roberto</p>