Welcome, Guest. Please Login or Register.
October 08, 2024, 06:28:27 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Why is my form... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Why is my form...  (Read 1152 times)
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Why is my form...
« on: November 03, 2003, 11:21:07 PM »
Reply with quote

I've created a form.  It uses tables, and it does what it is supposed to do, except, the copyright information that is supposed to be at the bottom of the table is showing up beside my table and looks horrible!  What am I doing wrong?


   echo '
               </table>                     
            </td>
         </tr>
         <tr>
            <td class="windowbg" bgcolor="' . $color['windowbg'] . '" align="center"><input type="submit" value="' . $txt[193] . '" />
         </tr>
      </table>
   </form>';
   footer();
   obExit();

}
?>


Thank you!
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Why is my form...
« Reply #1 on: November 04, 2003, 03:48:48 AM »
Reply with quote

           <td class="windowbg" bgcolor="' . $color['windowbg'] . '" align="center"><input type="submit" value="' . $txt[193] . '" />
        </tr>

Didn't you forget a closing td tag there...?  ::) Add a </td> before </tr>.
Logged
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Re:Why is my form...
« Reply #2 on: November 04, 2003, 12:04:00 PM »
Reply with quote

I've tried that now, and it is still the same.  I know I'm probably missing something Simple! Here is the whole script:

{
   global $username;
   global $yytitle, $txt, $scripturl, $color, $imagesdir, $db_prefix, $sc, $modSettings;
   $yytitle = $txt['newprofile1'];
   template_header();
   echo '<form>';
   $request = mysql_query("SELECT ID_MEMBER, memberName
            FROM {$db_prefix}members
            WHERE (memberName = '$username');") or database_error(__FILE__, __LINE__);
   $data = mysql_fetch_assoc($request);
   $ID = $data['ID_MEMBER'];
   $request = mysql_query("SELECT    *
            FROM {$db_prefix}equipment
            WHERE w_quanity > '0'
            ORDER BY w_name;") or database_error(__FILE__, __LINE__);
echo '
      <table width="100%" class="windowbg"' . $color['windowbg'] . '" align="left">
         <tr>
            <td>
               <table width="100%" class="windowbg"' . $color['windowbg'] . '" align="left">
                  <tr>
                     <td></td>
                     <td align="left">Name</td>
                     <td align="left">Type</td>
                     <td align="right">Weight</td>
                     <td align="right">Damage</td>
                     <td align="right">Value</td>
                     <td align="center">Quanity</td>
                  </tr>';
   while ($data = mysql_fetch_row($request))
   {
      $itname = $data[1];
      $ittype = $data[5];
      $itwgt  = $data[3];
      $itcost = $data[2];
      $itdmg  = ($data[4] * -1);
      $itstat = $data[5];
      $itcont = $data[6];
      echo '
                  <tr>
                     <td><font size="1"> &nbsp;&nbsp;<input type="checkbox" name="ID_W"</td>
                     <td align="left"><font size="2">' . $itname . '</td>
                     <td align="left"><font size="2">' . $ittype . '</td>
                     <td align="right"><font size="2">' . $itwgt . '</td>
                     <td align="right"><font size="2">' . number_format($itdmg) . '</td>
                     <td align="right"><font size="2">' . number_format($itcost). '</td>
                     <td align="center"><font size="2">' . $itcont . '</td></font>
                  </tr>';
   }
   echo '
               </table>                     
            </td>
         </tr>
         <tr>
            <td class="windowbg" bgcolor="' . $color['windowbg'] . '" align="center"><input type="submit" value="' . $txt[193] . '" />
            </td>
         </tr>
      </table>
   </form>';
   footer();
   obExit();
}


Thank you!
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Why is my form...
« Reply #3 on: November 04, 2003, 02:52:21 PM »
Reply with quote

Well, you forgot the form action, etc.... but the html looks fine offhand.... no misspelled td's or tr's, right?

-[Unknown]
Logged
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Re:Why is my form...
« Reply #4 on: November 04, 2003, 07:35:53 PM »
Reply with quote

I found the problem:  It has something to do with the tag 'Align="LEFT"'.  When I used 'center' it works fine!  Thank you!
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Why is my form... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.083 seconds with 20 queries.