Unstoppable Domains

Internet Explorer problem

Spaceship Spaceship
Watch

SiKing

Registered MemberEstablished Member
Impact
6
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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Try this. I only changed the second and third <td width ..>

HTML:
<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>
 
0
•••
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:
<?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');
}

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;
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> </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'> </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..
 
Last edited:
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back