Login.php problem - please help

Discussion in 'Web Design and Development' started by cwesty, Feb 6, 2006.

  1. macrumors member

    #1
    I'm really struggling to get the login.php page to work.
    Register is fine - I can see the registered user in my mysql database.
    However, when I try and register that user I don't get my members.php page as I'd expect.

    The start of my code in login.php looks like this:
    <?php
    ob_start();
    require_once($_SERVER['DOCUMENT_ROOT'].'/db_connect.php');

    if(isset($_SESSION['username']) && isset($_SESSION['password'])) {
    //REDIRECT TO USERS PROFILE...

    header("Location:http://www.mysite.co.uk/index.php?exec=members";

    ANY IDEAS??
     
  2. macrumors 68030

    superbovine

    #2
    we cannot answer your question because we don't have enough information....
     
  3. macrumors regular

    #3
    Perhaps because you're redirect to index.php?exec=members and not members.php?
     

Share This Page