+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: PHP script not working in IE!!

  1. #1
    toasterthegamer is offline x10Hosting Member toasterthegamer is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    61

    Exclamation PHP script not working in IE!!

    I have some code that will not work in IE works fine in firefox and I was wondering if you guys could help me out with it.. :happysad:

    My website is:
    http://nanotech.pcriot.com/

    Code:
    <?php
    ob_start();
    define('IN_PHPBB', true);
    $phpbb_root_path = 'forum/'; //Relative path to your PHPBB2 installation
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);
    $userdata = session_pagestart($user_ip, PAGE_INDEX);
    init_userprefs($userdata);
    
    if( !$userdata['session_logged_in'] ) // Is the user NOT logged in?
       {
          ?>
                        <h2 class="login"><em>user</em>login</h2>
                        <form action="forum/login.php" method="post" name="login">
                            <div id="login-username">
                                <div><label for="username">username</label>: <input type="text" name="username"></div>
                                <div><label for="password">password</label>: <input type="password" name="password"></div>
                            </div>
                            <div id="login-button">
                                <input type="hidden" name="redirect" value="../index.php">
                                <input type="image" src="http://forums.x10hosting.com/images/btn_login.gif" value="login" name="login">
                            </div>
                            <div class="clear">
                                <div class="reg">
                                    New User? <a href="http://nanotech.pcriot.com/forum/profile.php?mode=register">REGISTER for FREE</a>
                                </div>
                            </div>
                        </form>
          <?php
       }
    if( $userdata['session_logged_in'] ) // Is the user logged in?
       {
        $appendLogout = $u_login_logout = $phpbb_root_path.'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; // Add the session ID to the logout link
        echo "<center>Welcome back, <a href=\"forum/profile.php?mode=viewprofile&u=".$userdata['user_id']."\" title=\"".$userdata['username']."\">".$userdata['username']."</a>!<br />"; // Show a welcome message
        echo "<a href=\"forum/privmsg.php?folder=inbox\" title=\"You have ".$userdata['user_unread_privmsg']." new messages\">(".$userdata['user_unread_privmsg'].") New Messages</a><br />"; // Any new PMs?
        echo "<a href=\"forum/profile.php?mode=editprofile\" title=\"My Profile\">My Profile</a><br />"; // Edit your profile link
        echo "<a href=\"".$appendLogout."\" title=\"Logout\">Logout</a><br />"; // Logout link
       } // end if, if you want you could add a login form in an else statement below
    ?>
    </center>
    Thanks for any help!!

    -Toasterthegamer
    Last edited by toasterthegamer; 10-01-2007 at 10:32 PM.

  2. #2
    wh00p101's Avatar
    wh00p101 is offline x10 Sophmore wh00p101 is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    241

    Re: PHP script not working in IE!!

    What happens when you view it in IE? I would view it but currently where I'm located it is blocked by a firewall.

  3. #3
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: PHP script not working in IE!!

    PHP scripts aren't browser dependant, if anything it may be a cookie fault

  4. #4
    toasterthegamer is offline x10Hosting Member toasterthegamer is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    61

    Re: PHP script not working in IE!!

    When you try to login in instead of login in like it does in firefox it just goes to forum/login.php and dosnt login in at all.... It looks fine just the script isnt working right oh and i posted my website so you could see whats happening

    And if you cant view it cause it blocks you try a proxy like vtunnel.com

    -Toasterthegamer

  5. #5
    tsukunase is offline x10Hosting Member tsukunase is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    40

    Re: PHP script not working in IE!!

    It works in IE and FF. No problem.
    ____________________________________
    Jake M.
    Resident Nerd


    Any tech problems, feel free to PM me!

  6. #6
    toasterthegamer is offline x10Hosting Member toasterthegamer is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    61

    Re: PHP script not working in IE!!

    Quote Originally Posted by tsukunase View Post
    It works in IE and FF. No problem.
    hmm what IE version do you have cause I use 7 and it wont work...
    Last edited by toasterthegamer; 10-01-2007 at 10:52 PM.

  7. #7
    tsukunase is offline x10Hosting Member tsukunase is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    40

    Re: PHP script not working in IE!!

    Quote Originally Posted by toasterthegamer View Post
    hmm what IE version do you have cause I use 7 and it wont work...
    IETab in Firefox, IE6 and IE7.
    ____________________________________
    Jake M.
    Resident Nerd


    Any tech problems, feel free to PM me!

  8. #8
    toasterthegamer is offline x10Hosting Member toasterthegamer is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    61

    Re: PHP script not working in IE!!

    Quote Originally Posted by tsukunase View Post
    IETab in Firefox, IE6 and IE7.
    How did you cause your not registered in the forums..

  9. #9
    tsukunase is offline x10Hosting Member tsukunase is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    40

    Re: PHP script not working in IE!!

    Just entered random stuff. I figured if it would just go to login.php, it would show the login box again instead of "invalid password/username"
    ____________________________________
    Jake M.
    Resident Nerd


    Any tech problems, feel free to PM me!

  10. #10
    toasterthegamer is offline x10Hosting Member toasterthegamer is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    61

    Re: PHP script not working in IE!!

    Quote Originally Posted by tsukunase View Post
    Just entered random stuff. I figured if it would just go to login.php, it would show the login box again instead of "invalid password/username"
    It's suppose to say "invalid password/username" sigh I really dont know whats wrong i have a feeling this code is some sorta of firefox working code only.. :happysad:

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. PHP script not working (RSSgenr8.php)
    By deepwater in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 09-21-2007, 09:05 PM
  3. PHP script not working (RSSgenr8.php)
    By deepwater in forum Free Hosting
    Replies: 8
    Last Post: 09-13-2007, 11:14 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers