Also ich möchte eine $disclaimer auf die Seite include_standard mit übernehmen und dort anzeigen lassen. Leider funtzt des net! Könnt Ihr euch das mal anschauen, vielleicht liegt es auch daran das $disclaimer eine PHP Datei ist!!!
Das ist das Menü:
<?
$disclaimer=disclaimer.php
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../css/schrift_fett.css">
<link rel="stylesheet" type="text/css" href="../../css/schrift_standard.css">
</head>
<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="3" width="15">
</td>
</tr>
<tr>
<td height="20" bgcolor="#CCCCFF">
<span class="schrift_fett">
Übersicht
</span>
</td>
<td height="20" bgcolor="#CCCCFF">
<span class="schrift_standard">
<a href="include_standard.php?disclaimer=<? echo urlencode ("disclaimer.php");?>">
Disclaimer</a>
</span>
</td>
</tr>
</table>
</body>
</html>
Wenn ich auf den Link klicke öffnet sich diese Datei wo die $disclaimer ausgeführt werden soll:
<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<?
include ("../../oben.php");
?>
</tr>
<tr>
<?
include ("menu_impressum.php");
?>
</tr>
<tr>
<? echo $disclaimer; ?>
</tr>
<tr>
<?
include ("untermenu_impressum.php");
?>
</tr>
</table>
</body>
Was mache ich falsch, denn er gibt mir dann immer nur als Text Disclaimer.php aus.
Das ist das Menü:
<?
$disclaimer=disclaimer.php
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../css/schrift_fett.css">
<link rel="stylesheet" type="text/css" href="../../css/schrift_standard.css">
</head>
<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="3" width="15">
</td>
</tr>
<tr>
<td height="20" bgcolor="#CCCCFF">
<span class="schrift_fett">
Übersicht
</span>
</td>
<td height="20" bgcolor="#CCCCFF">
<span class="schrift_standard">
<a href="include_standard.php?disclaimer=<? echo urlencode ("disclaimer.php");?>">
Disclaimer</a>
</span>
</td>
</tr>
</table>
</body>
</html>
Wenn ich auf den Link klicke öffnet sich diese Datei wo die $disclaimer ausgeführt werden soll:
<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<?
include ("../../oben.php");
?>
</tr>
<tr>
<?
include ("menu_impressum.php");
?>
</tr>
<tr>
<? echo $disclaimer; ?>
</tr>
<tr>
<?
include ("untermenu_impressum.php");
?>
</tr>
</table>
</body>
Was mache ich falsch, denn er gibt mir dann immer nur als Text Disclaimer.php aus.
Wenn du den Inhalt der Datei anzeigen willst, dann lies doch Zeile für Zeile die Datei ein oder binde die ein mit include(), also include("$pfad/$disclaimer);
Kommentar