En liten ting, hvordan får jeg dette til å virke?
Altså ?page=home skal inn i den ene delen a tableen.
PS: fint om du forklarer litt hvorfor ?page=home havner akkurat der på siden å hvordan jeg endrer på det.
her er koden:
--START--
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Hvalstad Data</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<meta name="keywords" content="Hvalstad Data, HD, hd, hvalstaddata.no, hvalstaddata.com, Hvalstad" />
<meta name="description" content="Hvalstad Data driver med Web Hosting, Web Design, Programmering og mye mer." />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6305556-7");
pageTracker._trackPageview();
} catch(err) {}
</script>
</head>
<body>
<?php
echo "<table border='1'>";
echo "<tr>";
echo "<td>";
echo "<div id='menu'>";
include("menu.php");
echo "</div>";
echo "</td>";
echo "<td>";
echo "<div id='content'>";
echo "her skal '?page=home' vises";
echo "</div>";
echo "</td>";
$default="home";
$directory="./";
$extension="php";
$page=$_GET['page'];
if (preg_match('/(http:\/\/|^\/|\.+?\/)/', $page)) echo "I'll h4x yuo!!1";
elseif (!empty($page))
{
if (file_exists("$directory/$page.$extension"))
include("$directory/$page.$extension");
else
echo "<h1>Error 404</h1>\n<p>Finner ikke siden!</p>\n";
}
else
?>
</body>
</html>
--SLUTT--