[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 12-14-2005, 09:27 AM   #1 (permalink)
SQLdumpster.com
 
miseria's Avatar
 
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 545
205.50 NP$ (Donate)

miseria will become famous soon enoughmiseria will become famous soon enough


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.
__________________
!!!!!!! see something you like? Accepting offers for great affiliate websites !!!!!!!
Free Databases for your Website | All Things Playstation 3
Website Design Books | Music While You Work? | Computer Gadgets
miseria is offline  
Old 12-14-2005, 11:50 AM   #2 (permalink)
mch
NamePros Regular
 
Join Date: Nov 2005
Location: EU
Posts: 248
99.25 NP$ (Donate)

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, 11:58 AM   #3 (permalink)
SQLdumpster.com
 
miseria's Avatar
 
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 545
205.50 NP$ (Donate)

miseria will become famous soon enoughmiseria will become famous soon enough


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');
}

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>&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..
__________________
!!!!!!! see something you like? Accepting offers for great affiliate websites !!!!!!!
Free Databases for your Website | All Things Playstation 3
Website Design Books | Music While You Work? | Computer Gadgets

Last edited by miseria; 12-14-2005 at 03:04 PM.
miseria is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:06 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85