Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:18:22+00:00 2026-05-26T04:18:22+00:00

This has been stumping me all day. I’m using a mysql based SESSION on

  • 0

This has been stumping me all day. I’m using a mysql based SESSION on my php file. All of the other browsers, except IE, are displaying my pages with the appropriate CSS files and they look fine (more specifically, it is changing my hover effects on my menu and changing the alignment of my footer). I’ve tested the file without the SESSION code in IE and it works fine. What is causing IE to change my layout when the SESSION is added?? Very frustrated. I’m sure you can tell I’m a php beginner from this message. Please help. Thank you.
James

  <?php
 session_start();
 if(@$_SESSION['auth'] != yes)
 {
  header("location: http://www.setdesign-la.com/login_reg.php");
  exit();
 }
echo "<center><a href='logOut.php'>Log Out</a></center>\n";
 ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 

Bagelmania | bagels and spreads | delicious coffee | sandwiches

<link rel="shortcut icon" href="bm.ico"> 
<link rel="stylesheet" type="text/css" href="http://www.setdesign-la.com/bagelmaniaStyle.css"/>
<link rel="stylesheet" type="text/css" href="http://www.setdesign-la.com/bagelmaniaMainMenu.css"/>
<link rel="stylesheet" type="text/css" href="http://www.setdesign-la.com/bagelmaniaFooter.css"/>




</head>


<body>
 <div id="topFade"></div>
  <div id="banner">
  <div id="bannerContainer"> 
   <div id="bannerContent">
<div id="bannerFlower"> 
             </div> 
             <!-- END BannerFlower --> 
    <div id="bannerPar">
    </div> <!-- END bannerPar -->


  </div><!-- END bannerContent -->
 </div><!-- END bannerContainer -->
</div><!-- END banner -->

<div id="menuWrapper"> 
<div id="menuContainer"> 
  <div id="centeredmenu"> 

       -Home
       -Affiliate Marketing
       -SEO 

   -Training  
   -Articles 
                 -Tacos
       -Yum 

  </div>   <!-- END centeredmenu --> 
 </div>   <!-- END menuContainer --> 

</div>  <!-- END menuWrapper --> 


<div id="wrapper">
  <div id="container">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:18:22+00:00Added an answer on May 26, 2026 at 4:18 am

    The reason is probably that you are outputting HTML before you are declaring the doctype. That causes IE to switch to quirks mode.

    Solution: Move this line

    echo "<center><a href='logOut.php'>Log Out</a></center>\n";
    

    into the HTML document.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This has been driving me crazy all day. I just want the value of
This one has been stumping me for a while. But I'm no expert. This
This has been stumping me for a bit. I have a Class written in
This has been a head-banger for me. I have looked at all of the
This has been stumping me for a while. I am trying to create a
This has been bugging me for the last few hours now. I am using
This has been stumping me for a few days now. I have a stored
This issue has been stumping me. This only happens in IE7. I saw some
This has been bothering me for a while now: Could not load file or
This has been a interesting file for me. I found that ,whenever a image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.