Error with tables overlapping

Reply

Join Date: Jun 2005
Posts: 12
Reputation: Knad is an unknown quantity at this point 
Solved Threads: 0
Knad Knad is offline Offline
Newbie Poster

Error with tables overlapping

 
0
  #1
Jun 28th, 2005
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.

My Website (on temp host lol)


And here is an extract of the code that runs the second menu on the left:
[PHP]<TR><TD background="images/index_07.gif" width="120" height="16" class="titlecontent">
&nbsp;&nbsp;&nbsp;&nbsp;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>[/PHP]

Thanks

/Knad
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Error with tables overlapping

 
0
  #2
Jun 28th, 2005
What you describe sure sounds strange, and I wish I could see your site so I'd know what you are talking about, but the link you provided is not working.

You said it works when user is logged in--that the problem occurs when user is NOT logged in. So, let's point the finger at your FORM. Try doing this...this is a stab in the dark....
[php]
"<form style=\"margin:0px;padding:0px;\" name=\"login\" method=\"POST\" action=\"?p=login&a=1&r=".$p."\">"
[/php]
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 12
Reputation: Knad is an unknown quantity at this point 
Solved Threads: 0
Knad Knad is offline Offline
Newbie Poster

Re: Error with tables overlapping

 
0
  #3
Jun 29th, 2005
Hello

Updated Link - works for me and shows overlapping on main page

I have tried the code you suggested, but it doesnt work any more help would be greatly appreciated as that is happening on all pages i make.

Thanks

/Knad
Attached Files
File Type: php index removed pass.php (4.3 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 12
Reputation: Knad is an unknown quantity at this point 
Solved Threads: 0
Knad Knad is offline Offline
Newbie Poster

Re: Error with tables overlapping

 
0
  #4
Jul 3rd, 2005
any help guys? this really bugging me...i found out its only when i use forms
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Error with tables overlapping

 
0
  #5
Jul 4th, 2005
Please build a page that is as simple as possible that displays this issue. Can you create a table with only 2 columns with a form in one that creates this problem? If so, post that code so I can look at it. As it is, I can't tell what you expect the page to look like.

Try it without any PHP -- just HTML. Does the problem still exist?
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 26
Reputation: Yuki H. is an unknown quantity at this point 
Solved Threads: 0
Yuki H.'s Avatar
Yuki H. Yuki H. is offline Offline
Light Poster

Re: Error with tables overlapping

 
0
  #6
Jul 4th, 2005
I usually do trial and error with something like that.
Why don't you view the source code of the sign in page before you log in
and view again after you log in. Compare the codes, you might find a slight difference. That might help, Hope that helps. I am not too good with php... :o
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC