Hello all. I am having an issue with a form creating an extra row in a table cell in IE.
I think it would be easier to look at my code then to explain my problem at first:
<table width="780" cellspacing="0" cellpadding="0" border="0" class="MAIN_TABLE">
<tr>
<td width="100%" valign="top" class="MENU"><form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left">Google Search: <input class="input" type="text" name="q" size="18" maxlength="255" value=""></input>
<input type="submit" class="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-5152760421180776"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:990000;LC:990000;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input></td>
<td align="right"><?php
$loc = $db->row("SELECT * FROM location LIMIT 1");
$GMADDR = $loc['address1'];
if(!empty($loc['address2'])) $GMADDR .= ' '.$loc['address2'];
$GMADDR .= ' '.$loc['postal'];
?><a href="http://maps.google.com/maps?q=<?php echo urlencode($GMADDR); ?>&hl=en" title="Google Map for <?php echo CO; ?> Automotive Sales" target="_blank">Get directions to <?php echo CO; ?>!</a></td>
</tr>
</table></form>
</td>
</tr>
<tr>
<td width="100%" valign="top"><img width="784" border="0" class="HEADER" src="<?php echo HEADER_IMAGES_URL.WEB_HEADER; ?>"></td>
</tr>
I am trying to properly nest a form, and everything shows up fine in FireFox. But in IE, it makes one row look like two -- due to the closing form tag. Does anyone know of a way around this?