tida19 Posted January 31, 2011 Share Posted January 31, 2011 my code look like this <ul id="navigation"> <li> <a href="index.php?page=profile.php">Profile</a></li> <li > <a href="index.php?page=product.php">Products</a></li> <li ><a href="index.php?page=service.php">Service</a></li> <li ><a href="index.php?page=promotion.php">Promotion</a></li> <li ><a href="index.php?page=contact.php">Contact us</a></li> </ul> . . . <div class="content"> <?php if(empty($page) or $page=="index"){ include ("profile.php"); } else { include ($_GET["page"]);} ?> </div> It works well on appserv, but when i uploaded to server ... it's not working.. what to do? :-\ Link to comment https://forums.phpfreaks.com/topic/226197-include-filephp-does-not-show-on-server/ Share on other sites More sharing options...
suma237 Posted January 31, 2011 Share Posted January 31, 2011 before the <div >content,store the value to the variable $page $page=$_GET["page"] Link to comment https://forums.phpfreaks.com/topic/226197-include-filephp-does-not-show-on-server/#findComment-1167759 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.