Soldato
- Joined
- 30 Nov 2005
- Posts
- 3,084
- Location
- London
Been racking my brains to get this PHP login working and have nearly got there. Just one problem left, for some reason if the username/password is wrong it's won't redirect.
Any ideas?
Cheers
if (!$rs->EOF)
{
if ($_POST["user"] == $User &&
$_POST["password"] == $Password)
{
session_start();
$_SESSION["Authorised"] = "Y";
header("Location: index.php");
}
else
{
header("Location: baduserpass.php");
}
}
Any ideas?
Cheers
if (!$rs->EOF)
{
if ($_POST["user"] == $User &&
$_POST["password"] == $Password)
{
session_start();
$_SESSION["Authorised"] = "Y";
header("Location: index.php");
}
else
{
header("Location: baduserpass.php");
}
}