ich habe hier mal den quelltext zu dat1.php
Code:
<?php $ordner = $_REQUEST['ordner'];
if(!isset($ordner) || $ordner == "index") { ?>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td colspan="2" class="headb">Galerie</td></tr>
<tr><td class="leftc">
Sie haben keinen Ordner gewählt
</td></tr></table>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td class="headb" style="width:10%"></td>
<tr><td class="leftb"></td></tr>
</table>
<?php } else { ?>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td colspan="2" class="headb">Galerie</td></tr>
<tr><td class="leftc">
Sie befinden sich im Ordner <?php echo $ordner; ?>
</td></tr></table>
<table style="width:500" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td class="headb" style="width:10%"></td>
<?php $galerie = "galerie/$ordner";
$getdir=opendir($galerie);
while ($file = readdir ($getdir)) {
if ($file != "." AND $file != "..") { ?>
<tr><td class="leftb">
<a href="#" onclick="window.open('show/galerie1.php')">
<center>[img]galerie/<? echo $ordner; ?>/<? echo $file; ?>[/img]</a></center></td></tr>
<?php } } closedir($getdir); ?>
</table>
<?php } ?>
und hier zu dat2.php
Code:
<?php $ordner = $_REQUEST['ordner'];
if(!isset($ordner) || $ordner == "index") { ?>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td colspan="2" class="headb">Galerie</td></tr>
<tr><td class="leftc">
Sie haben keinen Ordner gewählt
</td></tr></table>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td class="headb" style="width:10%"></td>
<tr><td class="leftb"></td></tr>
</table>
<?php } else { ?>
<table style="width:90%" border="0" cellspacing="1" cellpadding="0" class="forum">
<tr><td colspan="2" class="headb">Galerie</td></tr>
<tr><td class="leftc">
Sie befinden sich im Ordner <?php echo $ordner; ?>
</td></tr></table>
<table class="forum">
<tr><td class="headb" style="width:10%"></td>
<?php $galerie = "galerie/$ordner";
$getdir=opendir($galerie);
while ($file = readdir ($getdir)) {
if ($file != "." AND $file != "..") { ?>
<tr><td class="leftb">
<center>[img]galerie/<? echo $ordner; ?>1/<? echo $file; ?>[/img]</center></td></tr>
<?php } } closedir($getdir); ?>
</table>
<?php } ?>
noch mal so zur info ich arbeite mit einem php template system und dann greife ich mit ne link auf dat1.php zu wo die variable $ordner in dat1.php einen wert erhält!!!
in dat2.php greife ich aber mit nem anderen link drauf zu so das in dat2-php die variable$ordner keinen wert hat......
was bzw wie muss ich das jetzt machen das in dat2.php die variable $ordner den gleichen wert wie die var $ordner in dat1.php hat????
brauche mal schnell help plz
thx schonmal an alle rippa