Web Analytics Made Easy -
StatCounter table alignment when including php - CodingForum

Announcement

Collapse
No announcement yet.

table alignment when including php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • table alignment when including php

    Hello everyone,

    I'm including php in my document(which works perfectly fine). However, when the form is being handled one table just disappears. I've tried several thing, such as using include to handle the table, moving the form. All of these have no effect on the disappearing table. The page can be found at http://ericschuppe.com/signinm.php
    to test this type in 0001 for user id and any number greater than 3 digits for user code
    Following hitting signout, the table at the bottom will disappear.
    Code:
    <?php
    session_start();
    if (!isset($_SESSION['user']))
    {
    header("Location: login.php");
    }
    ?> 
    <html>
    <head>
    
    <style type="text/css">
    body
    {
    background-color: #EBF4FA;
    background-image: url('images/layout_01.gif');
    background-repeat: repeat-x;
    
    }
    </style>
    </head>
    <body>
    <table width="542" align="center" cellpadding="0" cellspacing="0" height="589">
        <tr>
            <td width="7" height="589" rowspan="4" background="images/right.png">
                <p align="center">&nbsp;</p>
            </td>
            <th width="528" height="105" align="center" valign="top">
                <img src="images/layout_05.gif" width="528" height="116" border="0" align="middle">
            </th>
            <td width="7" height="589" align="center" valign="top" rowspan="4" background="images/left.png">&nbsp;</td>
        </tr>
        <tr>
            <th width="528" height="17" align="center" valign="top"><?php include('menu.html'); ?></th>
        </tr>
        <tr>
            <th width="528" height="447" align="center" valign="top" bgcolor="#F8FCFF">
                <p align="left">&nbsp;<?php include('signin.php'); ?></p>
            </th>
        </tr>
        <tr>
            <th width="528" height="3" align="center" valign="bottom"><img src="images/layout_10.gif" width="528" height="15" border="0" align="bottom"></th>
        </tr>
    </table>
    </body>
    </html>
    Thanks.

  • #2
    Do you know why tables for layout is stupid?
    Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

    Comment


    • #3
      I tried using css to do it, but the outcome was virtually the same, the image disappeared upon hitting submit. Any other ideas?

      Thanks again.
      Last edited by eschuppe; Apr 13, 2009, 01:23 PM.

      Comment


      • #4
        I tried using css to do it, but the outcome was virtually the same, the image disappeared upon hitting submit.
        Please post a link to your updated page.
        Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

        Comment

        Working...
        X