Posted by The Numerator on 03/29/06 06:50
Use this code:
<html>
<head>
<title>CWO</title>
<base href="http://www.christwarriors.net/stuff/index.html">
</head>
<body>
<?php
$p = $_GET['p']; // This sets the variable
if ($_GET['title'] == "") // If its only dopage.php,
{
include "index.html"; // show index.html (problem is that all the links
are relative to the php file not the html)
}
elseif ($_GET['p'] == "mysite.html") // If the URL is
dopage.php?p=mysite.html,
{
include "mysite.html"; // show mysite.html
}
else // if its none of the above
{
include "invalid.html"; // show the page invalid.html
}
?>
</body>
</html>
the only problem is that the links are relative only to the php...but
you can easily work around that
Navigation:
[Reply to this message]
|