runnerjp Posted July 17, 2009 Share Posted July 17, 2009 how would i get the php to work thing this redirect?? header('Location: index.php?page=message&forum=$forum&id=$forumpostid&pagenum=last'); at the moment it just mimics the location Link to comment https://forums.phpfreaks.com/topic/166350-php-within-a-header-redirect/ Share on other sites More sharing options...
p2grace Posted July 17, 2009 Share Posted July 17, 2009 Variables need to be within double quotes. header("Location: index.php?page=message&forum=$forum&id=$forumpostid&pagenum=last"); Link to comment https://forums.phpfreaks.com/topic/166350-php-within-a-header-redirect/#findComment-877228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.