...

View Full Version : table alignment when including php



eschuppe
04-13-2009, 04:52 AM
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.

<?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.

abduraooft
04-13-2009, 11:12 AM
Do you know why tables for layout is stupid (http://www.hotdesign.com/seybold/)?

eschuppe
04-13-2009, 06:04 PM
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.

abduraooft
04-14-2009, 01:45 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum