Its missing a semicolon in the script, use this:
Code:$come_from = $_SERVER['HTTP_REFERER']; if ($come_from == "site.com/login.php"){ $redirect_url = $config['baseurl'] . '/' . $user_info['user_name']; }else{ $redirect_url = "javascript:history.go(-2)"; redirect($redirect_url); }




Reply With Quote
Bookmarks