Schattenmantel
Aktives Mitglied
Thread Starter
- Dabei seit
- 22.04.2002
- Beiträge
- 1.753
- Reaktionspunkte
- 1
Salut zusammen. Ich brauche mal eure Hilfe ihr PHP könner da draussen!
Und zwar habe ich folgenden Code auf der Page:
Wie ja erkennbar ist, steure ich über den include Befehl die Texte und die Menues. Jetzt habe ich die Situation das ich nen Menuewechsel habe aber dadurch nicht wieder auf den indes.html Text auch noch springen will. Kann ich die text Variable irgendwie ausserhalb der if Anweisung speichern so dass diese immer den letzten Wert behält falls kein neuer definiert wird?
Herzlichen Dank für eure baldige und schnelle Hife!
mfg Schattenmantel
Und zwar habe ich folgenden Code auf der Page:
PHP:
<html>
<head>
<title>Schattenmantel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a:active { color: #CC0000; text-decoration: none}
a:visited { color: #CC0000; text-decoration: none}
a:hover { color: #FF0000; text-decoration: underline}
a:link { color: #CC0000; text-decoration: none}
a:hover { color: #FF0000; text-decoration: underline}
</style>
</head>
<body bgcolor="#000000" text="#000000">
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="165"> </td>
<td rowspan="4"><?php include( "header_footer/header.php"); ?><br></td>
<td width="165"> </td>
</tr>
<tr>
<td width="165"> </td>
<td width="165"> </td>
</tr>
<tr>
<td width="165"> </td>
<td width="165"> </td>
</tr>
<tr>
<td width="165"><img src="/images/saeule_gerade3_01.gif"></td>
<td width="165"><img src="/images/saeule_gerade3_01.gif"></td>
</tr>
<tr>
<td width="165" valign="top" background="/images/saeule_gerade3_02.gif"><?php
if ( !empty( $menue ) )
{
include("menues/" . $menue . ".php" ); }
else
{
include( "menues/wh40k.php" );
}
?> </td>
<td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="68" scope="col"><img src="/images/scroll_07.gif" width="69" height="109"></th>
<th background="/images/scroll_01.gif" scope="col"> </th>
<th width="68" scope="col"><img src="/images/scroll_02.gif" width="69" height="109"></th>
</tr>
<tr>
<td width="68" background="/images/scroll_03.gif"> </td>
<td background="/images/Hintergrund.jpg"><?php
if ( !empty( $text ) )
{
include("templates/wh40k/" . $text . ".html" ); }
else
{
include( "templates/wh40k/index.html" );
}
?></td>
<td width="68" background="/images/scroll_04.gif"> </td>
</tr>
<tr>
<td width="68"><img src="/images/scroll_08.gif" width="69" height="100"></td>
<td background="/images/scroll_05.gif"> </td>
<td width="68"><img src="/images/scroll_06.gif" width="69" height="100"></td>
</tr>
</table>
<p></p></td><td width="165" valign="top" background="/images/saeule_gerade3_02.gif"><?php include( "menues/mainmenue.php" ); ?></td>
</tr>
<tr>
<td width="165"><img src="/images/saeule_gerade3_03.gif"></td>
<td rowspan="2"><?php include("header_footer/footer.php"); ?></td>
<td width="165"><img src="/images/saeule_gerade3_03.gif"></td>
</tr>
<tr>
<td width="165"><img src="/images/saeule_gerade3_04.gif"></td>
<td width="165"><img src="/images/saeule_gerade3_04.gif"></td>
</tr>
</table>
Wie ja erkennbar ist, steure ich über den include Befehl die Texte und die Menues. Jetzt habe ich die Situation das ich nen Menuewechsel habe aber dadurch nicht wieder auf den indes.html Text auch noch springen will. Kann ich die text Variable irgendwie ausserhalb der if Anweisung speichern so dass diese immer den letzten Wert behält falls kein neuer definiert wird?
Herzlichen Dank für eure baldige und schnelle Hife!
mfg Schattenmantel