тоже самое, но ещё короче
Код:<?php include("header.htm"); $file="folder\1.htm"; if ((!(preg_match ("/[\/]/",$_GET['id']))) & (is_file("folder\".$_GET['id'].".htm"))){ $file="folder\".$_GET['id'].".htm"; } include($file); include("footer.htm"); ?>