runnerjp Posted January 31, 2007 Share Posted January 31, 2007 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 More sharing options...
jskoland Posted January 31, 2007 Share Posted January 31, 2007 I do not see where upon a successful login you get redirected to another page. Link to comment https://forums.phpfreaks.com/topic/36478-loggin-in-page-problems/#findComment-173696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.