Topic: CMS inserts extra code that breaks my tables.

I have some tables set up with payment buttons in them.  Everytime I edit the page, the CMS inserts   in my forms and it will break my tables apart.

Example:
my code -
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="HYCMDSMZT4VCJ" /> <input src="http://www.alphaomyoga.com/images/200-int-cost_07.gif" type="image" /></form>

Code after I edit anything on the page-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="HYCMDSMZT4VCJ" /> <input src="http://www.alphaomyoga.com/images/200-int-cost_07.gif" type="image" />&nbsp;</form>

Notice that right before the the </form> tag, a non breakable sapce has been inserted.  This happens on each of my buttons on that page.  Does this happen for a reason?  Everytime my client goes in to edit the page, it breaks up the tables, even though they dont edit anything.  All they have to do is open the editor and save it and it will insert the &nbsp;

This only happens in the form tags.  It doesn't insert it anywhere else on the page.

Is it supose to do this??

Last edited by Mike9 (15 Aug 2011 17:04:40)

Crap!  Someone knocked over my recycle bin and now there are icons all over my desktop...

Re: CMS inserts extra code that breaks my tables.

Hi Mike, id you putt a DIV inside the form it doesn't add the space, e.g.

<form ...>
     <div>
          <input ... />
     </div>
</form>

Re: CMS inserts extra code that breaks my tables.

I'll change it up tonight and test it out.

Thanks Simon

Crap!  Someone knocked over my recycle bin and now there are icons all over my desktop...