'llo,
Wen ich jetzt in eine Tabelle einmal den include-code mache:
<?php
if (!$hear){
$hear="text.php";
}
include ("./".$hear);
?>
Und in einer andere nochmal:
<?php
if (!$hear2){
$hear2="text.php";
}
include ("./".$hear2);
?>
Ist da ja so ähnlich wie bei Frames aufgebaut, jetzt möchte ich aber (Wie bei Frames) das wen man auf einen Link klickt einmal bei hear2 und bei hear etwas anderes erscheint, also wie bei solchen Doppelframes.
Weiß jemand wie das geht?
Mfg,
Yannik
Hallo yanniklein
ich verstehe nicht ganz genau was du möchtest
aber ich denke du willst einige links in einem anderen "frame" öffnen ?!??!?!?
<?php
print "<table><tr><td>";
echo "<a href=\"{$_SERVER["PHP_SELF"]}?link=test\">TEST</a>
<a href=\"{$_SERVER["PHP_SELF"]}?link=text\">TEXT</a>";
print "</td><td>";
$file = "{$_GET["link"]}.php";
if(file_exists($file)){
include($file);
}else{
include("error.php");
}
print "</td></tr></table>";
?>
hoffe das war das richtige
LG
Ja das hab ich gesucht! Danke!!