PDA

View Full Version : Login.php problem - please help




cwesty
Feb 6, 2006, 03:07 PM
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??



superbovine
Feb 6, 2006, 06:27 PM
we cannot answer your question because we don't have enough information....

jestershinra
Feb 6, 2006, 06:41 PM
Perhaps because you're redirect to index.php?exec=members and not members.php?