PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
m2babaey
Forum Contributor
Posts: 364 Joined: Sun May 20, 2007 9:26 am
Post
by m2babaey » Mon Jul 02, 2007 9:01 am
Hi
this code:
Code: Select all
if ($user->_checkLogin($processed['username'], $processed['password'], $remember)) {
if (isset($_SESSION['log_to'])) {
header( Location: "$_SESSION['log_to']");
}
On this line:
Code: Select all
header( Location: "$_SESSION['log_to']");
is sending a parse error. How can I fix it?
thanks
CoderGoblin
DevNet Resident
Posts: 1425 Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany
Post
by CoderGoblin » Mon Jul 02, 2007 9:03 am
Code: Select all
header("Location: {$_SESSION['log_to']}");
exit;
Always put exit after header redirection.. or code continues processing