PHP Code:
<?
switch(strtolower($_GET['page']))
{
case "downloads":
switch(strtolower($_GET['sub'])) {
case "javascript": $page="downloads/java.php"; break;
case "php": $page="downloads/php.php"; break;
case "editors": $page="downloads/editors.php"; break;
case "templates": $page="downloads/templates.php"; break;
case "": $page="downloads/index.php";break;
} break;
default: $page="pages/news.html";break;
}
if (isset($_GET['fid'])){
$fid=$_GET['fid'];
}else{
//default value if not set...
$fid=-1;
}
include($page);
?>
Don't you want to use require rather than include?
Oh yeah, please encase your code in [ php ]
code here [ / php ] tags...