Jump to content

Problems with IE when loggin out from my homepage


chrishau

Recommended Posts

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.

[code]<? 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">
  <tr>
    <td align="center" bgcolor="#000066"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>
  </tr>
  <tr>
    <td bordercolor="#FFFFFF"><form name="form1" method="post" action="index.php">
      <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
&nbsp;User:
          <input type="text" name="user">
        </font></p>
        <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Pass:
              <input type="password" name="pass">
        </font></p>
        <p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
          <input type="submit" name="Submit2" value="Submit">
        </font></p>
      </form>

    </td>
  </tr>
</table><br>
<? }
?>
[/code]

Then after pressing the logout button this check runs:

[code]<?php
require_once('includes/Sentry.php');

$sentry = new Sentry();
if ($HTTP_POST_VARS['user'] != ''){
$sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],4,'index.php','failed.php');

}

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

The sentry.php deals with session control etc..

Now can anyone tell me why this only screws up in IE? Would really appreciate it...
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.