Forum Moderators: open
<TABLE>
<FORM>
<TR>
<TD>
<INPUT name="element1">
</TD>
<TD>
<INPUT name="element2"><br>
<INPUT type="submit">
</TD>
</TR>
</FORM>
</TABLE>
The only problem is that this does not validate. I have tried putting the form around the table, but the table is very large and contains another form. Where can I put the start and end tags of the FORM that is valid? I want to stay away from javascript if I can, because my visitors are unlikely to have it set to 'allow'. Please help ASAP.
This is a common problem with sites that use large tables for positioning - you end up trying to figure out where to put your forms!
Technically a form should be around the table, you may even get away with it being inside a <td>. It should not, however, be opened between a <table> and <tr> tag, or a <tr> and <td> tag. There is just no "space" here for it!
You may have to make a difficult choice: consider changing the way that you are using tables or relax your attitude to validating your code.
Good luck!
form.nospace { padding:0; margin:0; }
And now the forms don't get all pushy with the rest of the page. :-)