runnerjp Posted November 7, 2008 Share Posted November 7, 2008 im trying to redirect users after a successfull post.. im tryign to use header('Location: http://www.runningprofiles.com/members/index.php?page=message&forum=$forum'); but thats what it echos out... how do i use the $forum commend within the url? Quote Link to comment https://forums.phpfreaks.com/topic/131804-solved-echoing-php-code-in-header/ Share on other sites More sharing options...
rhodesa Posted November 7, 2008 Share Posted November 7, 2008 use double quotes, not single quotes. variables don't get evaluated in single quotes or concatenate it instead: header('Location: http://www.runningprofiles.com/members/index.php?page=message&forum='.$forum); Quote Link to comment https://forums.phpfreaks.com/topic/131804-solved-echoing-php-code-in-header/#findComment-684676 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.