// determine what the script file name is; in each case, we will // insert content from the file TEMPLATE-scriptfile.php $selfarr = explode("/", $_SERVER['PHP_SELF']); $scriptfilename = $selfarr[count($selfarr) - 1]; ?>