|
I think the problem is that no one is sure what you're asking.
Because of the order in which the page is interpreted by the server, you cannot use a variable as a file name to include content
include ($_GET['id'] . ".txt") - would not work.
You can set conditionals though, specific files are displayed depending on the variable in the querystring.
$id = $_GET['id']
if ($id == "blah") {
include ("blah.txt");
} elseif ($id == "blahblah") {
include ("blahblah.txt");
} else {
include ("default.txt");
}
If you have a lot of content that you want to use this way, that's extremely tedious. You might want to structure a database with an id, linkname, content then dynamicly create your menu and links and pull the content from the database on the fly.
|