wildti Posted February 1, 2010 Share Posted February 1, 2010 any idea why this doesnt work? <?php switch($pageid) { case "1": include('news.php'); break; case "2": include('about.php'); break; case "3": include('biography.php'); break; default: include('start.php'); } ?> it includes start.php fine but wont include the others when they are triggerd i.e. index.php?pageid=2 still includes start.php thanks in advance Link to comment https://forums.phpfreaks.com/topic/190594-can-anyone-help-the-new-guy/ Share on other sites More sharing options...
Mchl Posted February 1, 2010 Share Posted February 1, 2010 switch($_GET['pageid']) You probably have register_globals disabled (which is a good thing, but requires a bit of extra work) Link to comment https://forums.phpfreaks.com/topic/190594-can-anyone-help-the-new-guy/#findComment-1005218 Share on other sites More sharing options...
wildti Posted February 1, 2010 Author Share Posted February 1, 2010 happys days it works thanks mate Link to comment https://forums.phpfreaks.com/topic/190594-can-anyone-help-the-new-guy/#findComment-1005219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.