Hidden input fields don't submit
I've run into a problem with IE7 and hidden input fields. If the
hidden input fields are not inside a table cell they do not get
submitted to the action page. Example:
<form action="myaction.cgi" method="post"...>
<input type="hidden" name="test1" value="this will not get
submittted">
<table>
<tr>
<td>
Field 1
</td>
<td>
<input type="text" name="field1">
</td>
</tr>
<tr>
<td>
Field 2
</td>
<td>
<input type="text" name="field2">
</td>
</tr>
<tr>
<td>
<input type="hidden" name="test2" value="this will get
submitted">
<input type="submit" value="submit it">
</td>
</tr>
</table>
</form>
I know I can position my hidden inputs inside the table, but shouldn't
it work without a table? FF and IE5/6 do.
|