du musst nicht unbedingt Erfahrung damit haben. Aber es empfiehlt sich einfach
ok.. folgendes ist ganz simpel, du wirst sehen.
das ist die index.php seite (also nicht index.html)
Code:
<html>
<head>
<title>Meine Homepage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#999999">
<td colspan="2"><p>Logo</p>
<p> </p></td>
</tr>
<tr>
<td width="30%" valign="top" bgcolor="#999999">
<p><br>
<a href="index.php?id=button1">Button1</a></p>
<p><a href="index.php?id=button2">Button2</a></p>
<p><a href="index.php?id=button3">Button3</a></p>
<p><a href="index.php?id=button4">Button 4</a></p>
<p><a href="index.php?id=button5">Button 5</a></p>
</td>
<td width="70%" valign="top" bgcolor="#CCCCCC"><?php
$action = $_GET['id'];
$pages = array
(
'home' => 'home.php',
'button1' => 'link1.php',
'button2' => 'link2.php',
'button3' => 'link3.php',
'button4' => 'link4.php',
'button5' => 'link5.php',
);
if(strlen($pages[$action]) > 0)
{
require $pages[$action];
}
else
{
require 'home.php';
}
?>
</td>
</tr>
</table>
</body>
</html>
und das ist zb. die seite link1.php
Code:
<body>
ich bin die Seite 1 die durch Klick auf "Button1" geöffent wird
</body
Fertig. Das selbe Prinzip mit allen anderen Seiten. Beim Verlinken einfach wie folgt:
zb.
index.php?id=button1
index.php?id=button2
index.php?id=button3
usw..
so wie es in der index.php drinsteht.
also wenn der Link auf button1 geht dann öffnet sich link1.php
ok?