chrishau Posted September 20, 2006 Share Posted September 20, 2006 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> </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> User: <input type="text" name="user"> </font></p> <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 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]<?phprequire_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 https://forums.phpfreaks.com/topic/21382-problems-with-ie-when-loggin-out-from-my-homepage/ Share on other sites More sharing options...
ToonMariner Posted September 20, 2006 Share Posted September 20, 2006 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 https://forums.phpfreaks.com/topic/21382-problems-with-ie-when-loggin-out-from-my-homepage/#findComment-95230 Share on other sites More sharing options...
chrishau Posted September 21, 2006 Author Share Posted September 21, 2006 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 https://forums.phpfreaks.com/topic/21382-problems-with-ie-when-loggin-out-from-my-homepage/#findComment-96348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.