Inlcuding page code issue
Posted: Mon Apr 14, 2008 12:31 am
Code: Select all
<?php
$page = $_GET['page'];
if ($page == ""){
$page = "home";
}
include ("pages/" . $page . ".php");
?><a href=\"?page=bands?Result_Set=$Res1\"> but the problem is - the above code puts .php after the file so it effectively turns the href into bands?Result_Set=$Res1.php
Anyone have any ideas on how to get rid of that, I am sure there is something simple but I am failing to find anything currently.