NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Internet Explorer problem

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-14-2005, 10:27 AM THREAD STARTER               #1 (permalink)
SQLdumpster.com
 
Encenta.com's Avatar
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 573
Encenta.com has a spectacular aura aboutEncenta.com has a spectacular aura about
 




Internet Explorer problem


Hey, I have two big problems with my new site:

Firstly; The top right corner is refusing to align to the right in Internet Explorer. Though it is working fine in FireFox.

Secondly; When the user signs in, and changes page, the session data is immediately lost. I've added session_start(); to the very top of the head file and the very top of every page file so I am clueless. The PHP is copied from my other site where it works fine.


http://www.dark-fx.com/static

Thanks for any help in advance.
__________________
Encenta - Amazon Associates CMS
Encenta.com is offline  
Old 12-14-2005, 12:50 PM   #2 (permalink)
mch
NamePros Regular
Join Date: Nov 2005
Location: EU
Posts: 248
mch is on a distinguished road
 



Try this. I only changed the second and third <td width ..>

HTML Code:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26" align="left" valign="top">
<img src="images/lcorner.GIF" alt=" " width="26" height="22" />
</td>

<td width="100%" align="left" valign="top">
<img src="images/logo.png" alt="Dark-FX" />	
</td>

<td width="26" align="right" valign="top">
<img src="images/rcorner.GIF" alt="corner" width="26" height="22" />
</td>
</tr>
</table>
mch is offline  
Old 12-14-2005, 12:58 PM THREAD STARTER               #3 (permalink)
SQLdumpster.com
 
Encenta.com's Avatar
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 573
Encenta.com has a spectacular aura aboutEncenta.com has a spectacular aura about
 




You are a genius, thanks very much!



As for the session problem, I don't have a clue. This is getting me very confused and I am very tired. I'd appreciate it if somebody could take a look at it for me.

PHP Code:
<?php
session_start
();

include(
"includes.php");
$signout $_GET["signout"];
if (
$signout == "true")
{
session_start();


if (isset(
$_SESSION['logged_in'])) {
   unset(
$_SESSION['logged_in']);
}
session_destroy();
header('Location: index.php');
????: NamePros.com http://www.namepros.com/programming/148036-internet-explorer-problem.html
}

if (
$_POST['login']) { 
include(
"config.php");

$password=md5($_POST['password']);
$sesusername=$_POST['username'];


$_SESSION['sesusername'];

$sql mysql_query("SELECT * FROM users WHERE username='$sesusername' AND password='$password' LIMIT 1");

$login_check mysql_num_rows($sql);

if (
$login_check == "1") {
$_SESSION['logged_in'] = true;
????: NamePros.com http://www.namepros.com/showthread.php?t=148036
include (
"membersarea.php");
}
elseif (
$login_check == "0") {
session_unset();

echo 
'<script>alert("Your login details were incorrect");</script>';
                echo 
'<script>history.back(1);</script>';
                exit;

}
}



        


if (!isset(
$_SESSION['logged_in'])) {
include(
"head.php");
echo 
"          <h1>Sign in</h1>
<p>&nbsp;</p>
          <form method='post' action='"
$_SERVER['PHP_SELF']; echo"' >
          <table width='268' border='0' align='center' cellpadding='0' cellspacing='0'>
               <tr>
              <td align='left'>Username </td>
              <td align='left'><label>
                <input name='username' type='text' class='inputbox' id='email' />
              </label></td>
            </tr>
            <tr>
              <td height='35' align='left'>Password</td>
              <td align='left'><input name='password' type='password' class='inputbox' id='password' /></td>
            </tr>
            <tr>
              <td height='24'>&nbsp;</td>
              <td align='left'>
                <input type='submit' name='login' value='Log in' />
              </td>
            </tr>
            <tr>
              <td height='43' align='left'><a href='register.php'>Register</a></td>
              <td align='left'><a href='password.php?new=forgotten'>Forgotten password </a></td>
            </tr>
          </table>
          </form>"
;
          include(
"foot.php");
         
         
         } 
?>
That's the whole sign in (signin.php) script

Thanks a lot..
__________________
Encenta - Amazon Associates CMS
Last edited by Encenta.com; 12-14-2005 at 04:04 PM.
Encenta.com is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 7 yoink78 The Break Room 3 11-05-2005 11:37 AM
Stop Animated .Gifs in Internet Explorer Mp)Tarh Web Design Discussion 4 09-02-2003 08:45 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:39 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger