perfetto grazie mille! proprio quello che volevo!
certo sicuramente si può scrivere meglio...
codice:<html> <head> <link rel="stylesheet" type="text/css" href="http://localhost/style.css" media="all"> <title>www.test.com</title> </head> <body> <?php $page = @$_GET["action"]; $page_list = array("news", "gallery", "onlylocals"); ?> <ul> >news >only locals >gallery[/list] <?php if (in_array($page, $page_list)) { include_once($page.".php"); } else include_once("news.php"); ?> </body> </html>