blueman378 Posted March 8, 2008 Share Posted March 8, 2008 hi guys, well heres what im trying to do: $old = $_SESSION['oldpage']; $_SESSION['error'] = "Username/password combination not correct!"; header( "Location: {$old}" ); but it simply isnt redirecting, btw $_SESSION['oldpage']; is set soewhere else any ideas, cheers matt Link to comment https://forums.phpfreaks.com/topic/95011-variables-and-header-redirect/ Share on other sites More sharing options...
Stooney Posted March 8, 2008 Share Posted March 8, 2008 <?php $_SESSION['oldpage']='old.php'; header("Location: $_SESSION[oldpage]"); ?> Link to comment https://forums.phpfreaks.com/topic/95011-variables-and-header-redirect/#findComment-486691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.