Das bringt mich jetzt nicht wirklich weiter ,
hier mal ein beispiel , bevor das php zeug ausgeführt worden ist steht da :
nach dem ausführen , dem einfügen steht dann da :
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>itemg1</title>
<?php
if(!isset($_GET['action'])) {
$action = 'waffen.html';
} else {
$action= $_GET['action'];
}
?>
</head>
<body>
<div align="center">
<center>
<table cellpadding="0" cellspacing="0" border="0" align="center"
style="width: 620px; text-align: left;">
<tbody>
<tr>
<td style="vertical-align: top; text-align: center;"><big
style="font-family: gothic ii im spiel;"><big><big
style="font-family: brush script mt;"><span
style="color: rgb(192, 192, 192);">Items</span></big>
</big></big>
<div style="text-align: left;"><span
style="color: rgb(192, 192, 192); font-family: gothic ii im spiel;">blablablabla :
</span>
<table cellpadding="0" cellspacing="0" border="0"
style="border: 1px solid rgb(204, 102, 0); text-align: left; width: 100%;">
<tbody>
<tr align="center">
<td
style="border: 1px solid rgb(204, 102, 0); vertical-align: top; height: 15px;">
<span style="font-family: gothic ii im spiel;">
<a href="item.php?action=abc.html">.......<a>
<a href="item.php?action=b.html">.......<a> <a href="index.php?action=xyz.html">........<a></span>
</td>
</tr>
<tr>
<td
style="border: 1px solid rgb(204, 102, 0); vertical-align: top;">
<?php
include($action);
?>
</td>
</tr>
</tbody>
</table>
<span
style="color: rgb(192, 192, 192); font-family: gothic ii im spiel;">
</span>
</td>
</tr>
</tbody>
</table>
</center>
</div>
</body>
</html> |
Allerdings funktionieren halt dann diese links hier nicht richtig:
<a href="item.php?action=abc.html">.......<a>
<a href="item.php?action=b.html">.......<a> <a href="item.php?action=xyz.html">........<a></span>
|
und zwar weil ja die hauptseite in die sie included worden sind index.php heißt ,
->die links werden in nem neuen fenster geladen , wenn ich index.php bei den links schreibe ,dann wird einfach nur der bereich ,der in den 2. include bereich (dem include bereich der unterstrichen ist) geladen werden soll eingefügt der rest nicht , kann man das irgendwie machen ,dass alles eingefügt wird ,die links auch funktionieren