Author Topic: Form element changes row layout - how to prevent...  (Read 5055 times)

0 Members and 1 Guest are viewing this topic.

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Form element changes row layout - how to prevent...
« on: January 21, 2003, 09:36:28 PM »
Hello all,

I have the following problem.
If I replace the code in the description table (details.html) with some code to make a form, then the rowheight doubles.
Is there a way to prevent this from happening?

Hereby a pic to example it.


And this the code used:
---- begin description box
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                    <tr>
                            <td class="head1" valign="top" colspan="2">{image_name}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row1" colspan="2"><FORM method=POST action="http://www.yourhostname.nl/cgi-bin/mcart/mof.cgi">
<INPUT type="hidden" name="postmode" value="SINGLEPOST">
<INPUT type="hidden" name="order" value="Afdr_{image_name}_10x15----[img align=left src=http://www.yourhostname.nl/gallery/data/thumbnails/{cat_id}/{thumbnail_file_name}] Bestandsnaam: {image_name} ----3.50---0.01--1">
10x15 cm; € 3,50
<INPUT type="text" name="quantity" size="1">
<input type="image" src="http://www.yourhostname.nl/mofcart/buy.gif" width=33 height=17  border=0
alt="Click Here to Add To Cart">
</FORM>
                     </td>
                           
                          </tr>
                          <tr>
                            <td valign="top" class="row2"><b>{lang_keywords}</b></td>
                            <td valign="top" class="row2">{image_keywords}</td>
                          </tr>

All suggestions are welcome. This thing is driving me wild.

Kind regards,
Piet
www.totaaldigitaal.nl

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Form element changes row layout - how to prevent...
« Reply #1 on: January 22, 2003, 06:12:31 AM »
yes, I had that problem too in setperpage_dropdown_form.html template.
that because <TABLE> is inside of <FORM>
Code: [Select]

<FORM>
     <TABLE>
         .....
     </TABLE>
</FORM>

but if u put it outside - it works fine
Code: [Select]

<TABLE>
      <FORM>
         ......
      </FORM>
</TABLE>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Form element changes row layout - how to prevent...
« Reply #2 on: January 22, 2003, 08:44:55 AM »
That's known bug in Macromedia Dreamweaver - every time you save document, you get <form> tags inside the table, even if you put it outside by hands  :(

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Form element changes row layout - how to prevent...
« Reply #3 on: January 22, 2003, 03:18:49 PM »
It worked. Thanxs.

Table placed inside form did the job.

Piet
www.totaaldigitaal.nl