Jump to content

loggin in page problems


runnerjp

Recommended Posts

hey guys .... when i try and log in through the loggin page it sends me just to main page again rather then sending me to the users page... any ideas why??


[code]<?
// File ID: login.php (user log in routine)

include("require/config.php");
require("require/membership.php");

$content="include/loginbox.inc.php";
$menu="include/menu_u.inc.php";
$page_title="Login Form";

if ($HTTP_POST_VARS) {
  if ($login && $password) {
$password=crypt($password, $login);
$data=authenticate($login, $password);
if ($data[error]) {$error=$data[error];}
else {
setcookie("ProfileDev","$login&&$password", 0, "/");
if (!$ref) {$ref="index.php";}
Header("Location: redirect.php?ref=$ref");
}
  } else {$error="901";}
}

error_message($error);

include("include/header.inc.php");
include("include/body.inc.php");
include("include/footer.inc.php");
?>[/code]


Link to comment
https://forums.phpfreaks.com/topic/36478-loggin-in-page-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.