If you've got a form surrounded by a table, you could nest the form inside the [tr] tags rather than the [td] tags. It's a kludge, but it works on nearly every browser I've tested.
Also, you could just define this in your stylesheets:
form { margin:0px; padding:0px }