Jump to content


Problems with IE when loggin out from my homepage

  • Please log in to reply
2 replies to this topic

#1 chrishau

  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 20 September 2006 - 09:22 AM

Check out www.dagangstas.net/index.php paswd: admin/admin If you log in and then log out using IE the whole page shifts... this is probably a css problem but I figured this was the place to ask since it happened after I made a php very simple cms. Now in any other webbrowser everything looks fine, but not in IE.

Here is the code that is responsible for making sure the right content is showed in the right sidebar of my page.

<? if(isset($_SESSION['loggetinn'])){
						 echo 'Logget inn som '.$_SESSION['user']; 
						 <div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="index.php?action=logout">Logout</a>&nbsp;</font></div>
				    else{	?>
							<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000066">
    									<td align="center" bgcolor="#000066"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>
    									<td bordercolor="#FFFFFF"><form name="form1" method="post" action="index.php">
       										<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
          									<input type="text" name="user">
        									<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Pass:
              									<input type="password" name="pass">
        									<p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
          									<input type="submit" name="Submit2" value="Submit">
				 <?	}

Then after pressing the logout button this check runs:


$sentry = new Sentry();
if ($HTTP_POST_VARS['user'] != ''){

if ($HTTP_GET_VARS['action'] == 'logout'){
	if ($sentry->logout()){
		echo '<center>You have been logged out</center><br>';

The sentry.php deals with session control etc..

Now can anyone tell me why this only screws up in IE? Would really appreciate it...

#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 20 September 2006 - 11:44 AM

check each page against the html validator at w3c. It will probably point out where some closing tag has been ommited.

This looks more like a html problem - could be css but I can't look though all that for you....

If it is css then you will have to check the whole cascade and see if you have set the class or id of some parent element differently when they log off.

But html is where I think the problem lies.
follow me on twitter @PHPsycho

#3 chrishau

  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 21 September 2006 - 09:34 PM

Thanks for the help but I have gone through the validator several times now and removed all errors except for some that I seem to get due to the links I have for my album. So my page passes the validation and there seems to be nothing missing... I am not stupid though so I know there is something missing but was hoping for validation to find it...

I have updated the www.dagangstas.net/index.php so that you can run it though the validation yourself and check.

Any other smart clues?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users