I'm not sure if this is a Perl question or a HTML one. I'm pretty sure I'm in the right place because I saw a vague reference in the perldoc that might have had something to do with it. (Can't find it now though - 2 minutes later.)
I've had to format some buttons on a page to each be in their own form to keep IE happy. The problem is that somehow I've got a carriage return in after each form. Instead of a tidy set of buttons at the top of the page I get a vertical list of them.
The code for the buttons is:
# Set Up Buttons print "<div align='center'>"; my $i = 0; while (@record[$i]){ print "<form action='/cgi-bin/subcatredir.cgi' method='get'>"; + print "<button type='submit' name='butCat' class=' +sub' value='@recordnum[$i]'><b>@record[$i]</b></button>"; + print "</form>&nbsp;"; $i=$i+1; } print "<input type='text' name='txtTyp' size='1' class='hi +dden' value='bus'/>"; print "</div>";
@record and @recordnum were populated by a database query earlier in the script.
The page is at www.martoncentral.co.nz/buslst.html and it is the second row/column of buttons involved.
I tried putting the buttons in a table but ended up with a row that cut clean across the right hand column. I'm lost. Any ideas what I've done wrong here?
Thanks.

In reply to Removing auto formatting at end of forms by greymoose

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.