try:
if($HTTP_GET_VARS['page']) {
include("$page.txt");
Using
index.php?page=content
Then:
$HTTP_GET_VARS['page'] will be set to
'content'
$page will == 'content'
If you use DOUBLE QUOTES
"$page.txt" will == 'content.txt'
If you use single quotes, however,
'$page.txt' will == '$page.txt' - not what you want.
NOTHING EVER == $
$ is a token only -- it says 'Whatever follows is a variable'
$HTTP_GET_VARS['page'] ==$ will always translate as false
'$.txt' (your original) would produce that exact (meaningless) string
"$.txt" would probably throw some sort of warning or error.