|
Post by Nocando on Sept 17, 2007 0:19:42 GMT
Maybe ron or someone else here can help me. Here is what I'm trying to accomplish.. Basically I have a layout index page. What I want to accomplish is display my content pages WITHIN my index page and I dont want to use iframes. <?php if(strstr($id, "..") || $id[0]=="/") $id = ""; if(empty($id)) $id = "/home/vbd/public_html/home.html"; else { $id = $id . ".html"; } if(is_file("$id")){ include("$id"); } else include ("404error.html"); ?>
I'm formatting my links like this: <a href="index.php?id=news">News</a> And heres what's happening, the home page work as it should but none of the links are working. vbd.x10hosting.com/ (content pages only have titles, no content yet)
|
|
|
Post by Ron on Sept 17, 2007 0:57:55 GMT
Are register globals turned on? If not $id is always going to be blank, even if you set it in the URL.
Try putting:
$id = $_GET['id'];
at the top and see what happens.
|
|