Hello,
I have just begun recoding my site and whenever i use PHP to put data on a page via an IF statement it overlaps any cells that are below it, and it also seems to be extending my left menu to the right.
The left menu works when logged in, but when not logged in it extends to the left. And throughout my site the tables overlap when an if statement is used.
And here is an extract of the code that runs the second menu on the left:
<TR><TD background="images/index_07.gif" width="120" height="16" class="titlecontent">
Members</TD>
</TR><TR><TD class="leftcontent">
<?PHP
if($_SESSION['ID']) {
echo "Hello ".$_SESSION['Username']."!!<BR>Welcome<p><A HREF=\"?p=logout&r=home\">Logout</A>";
} else {
echo "
<form name=\"login\" method=\"POST\" action=\"?p=login&a=1&r=".$p."\">
User:<br>
<input type=\"text\" name=\"User\" id=\"User\" size=\"12\" class=\"menuinput\"><br>
Password:<Br>
<input type=\"password\" name=\"Pass\" id=\"Pass\" size=\"12\" class=\"menuinput\"><br>
<input type=\"Submit\" name=\"Submit\" value=\"Login\">
</form>";
}
echo '</TD></TR><TR><TD>
<IMG src="images/index_08.gif" width="120" height="16" alt=""></TD></TR>
</TABLE>
</TD>'; ?>
<TD width="10">
<IMG src="images/spacer.gif" width="10" height="10" alt=""></TD>
Thanks
/Knad