html - Multiple forms in one table, but Firefox is changing my mark up automagically? -


i'm trying make table has 1 webform per table row. problem is, when display page in firefox, closes off form tags immediately. not allowed have multiple forms in table? edit: running jquery plugin "uniform" disabled it, , same result.

my code:

<table callpadding="0" cellspacing="0"> <tr> <td>id</td> <td>name</td> <td>type</td> <td>clickable</td> <td>live</td> <td>save</td> </tr>  <?php foreach($rows $row): ?> <tr> <form> <input type="hidden" name="table_bl" value="navigation" /> <input type="hidden" name="id_bl" value="<?php echo stickyrow($row['id'],''); ?>" /> <td><?php echo $row['id']; ?></td> <td><?php echo $row['page_name']; ?></td> <td><?php echo $row['page_type']; ?></td> <td> <input type="hidden" name="clickable" value="0" /> <input type="checkbox" name="clickable" value="1" <?php echo stickycheck($row['clickable'],'1'); ?> /> </td> <td> <input type="hidden" name="live" value="0" /> <input type="checkbox" name="live" value="1" <?php echo stickycheck($row['live'],'1'); ?> /> </td> <td><a class="submit">save</a></td> </form> </tr> <?php endforeach; ?> </table> 

firefox turns (note closing of form tags):

<tbody><tr> <td>id</td> <td>name</td> <td>type</td> <td>clickable</td> <td>live</td> <td>save</td> </tr>  <tr> <form></form>  <input name="table_bl" value="navigation" type="hidden"> <input name="id_bl" value="001" type="hidden"> <td>001</td> <td>narrative biography</td> <td>html</td> <td> <input name="clickable" value="0" type="hidden"> <div class="checker"><span class="checked"><input style="opacity: 0;" name="clickable" value="1" checked="checked" type="checkbox"></span></div> </td> <td> <input name="live" value="0" type="hidden"> <div class="checker"><span class="checked"><input style="opacity: 0;" name="live" value="1" checked="checked" type="checkbox"></span></div> </td>  <td><a class="submit">save</a></td>  </tr> <tr> <form></form> <input name="table_bl" value="navigation" type="hidden"> <input name="id_bl" value="002" type="hidden"> <td>002</td> <td>complete biography</td> <td>html</td> <td> <input name="clickable" value="0" type="hidden"> <div class="checker"><span class="checked"><input style="opacity: 0;" name="clickable" value="1" checked="checked" type="checkbox"></span></div>  </td> <td> <input name="live" value="0" type="hidden"> <div class="checker"><span class="checked"><input style="opacity: 0;" name="live" value="1" checked="checked" type="checkbox"></span></div> </td> <td><a class="submit">save</a></td>  </tr> </tbody> 

i'm sure changing mark valid, why, , should do? multiple tables? seems less elegant.

your html invalid , firefox doing best make sense of it. table row (i.e.: <tr> tag) can contain normal or header cells (i.e.: <td> , <th> tags). multiple tables easiest, php doing hard work you.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -