Skip to content

Instantly share code, notes, and snippets.

@walterdavis
Created June 19, 2012 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterdavis/2951589 to your computer and use it in GitHub Desktop.
Save walterdavis/2951589 to your computer and use it in GitHub Desktop.
<?php
$page = 'original_home_page.html';
if(isset($_GET['page']) && !empty($_GET['page'])) $page = $_GET['page'] . '.html';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Cool Site</title>
</head>
<frameset>
<frame src="header.html" />
<frame src="<?= $page ?>">
</frameset>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment