Sorry about the previous truncated message......
As I was saying my code for the login page is as follows:
<?php
require("conn.php");
if ($POST['btnLogin'] != "") {
//check the username and password
$user = $POST['userEmail'];
$pass = $_POST['userPassword'];
$result = mysql_query("SELECT * FROM tblUsers WHERE userEmail = '" . $user . "' AND userPassword = '" . $pass . "'");
if (mysql_num_rows($result) != 0) {
//if they match we are logged in
$row = mysql_fetch_array($result);
setcookie ("organiser", $row['userGUID'],time()+31449600, "/");
header("Location:organiser.php");
}else{
$nologin = true;
}
}
?>
But when I enter in my login details (which are correct becaue I've checked them in the database) I am not redirected to the organiser.php page.
Can anyone tell me why this may be?
thanks