// here's how you can use an array, applying it to something
// people here ask often (how to make index.php?page=somepage links),
// while ensuring your code is safe.
// FYI, IBF uses code like the following in their scripts...
$pages = array(
'index' => 'index.html',
'links' => 'links.html',
'downloads' => 'downloads.html',
'aboutme' => 'about.html'
); // the pages a user may visit, and the associated file to include
// what the user has chosen (e.g. index.php?page=aboutme)
$choice = ( !empty($_GET['page']) ) ? $_GET['page'] : 'index';
// verify that the chosen "page" exists in the $pages array...
if( !isset($pages[$choice]) )
{
$choice = 'index';
}
// include the file (e.g. about.html) associated with the chosen "page"
include('./' . $pages[$choice]);