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? 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); 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
Archived
This topic is now archived and is closed to further replies.