HÄÄ?
Beim Testen mit Session_Register(); ging das jetzt doch! also jetzt spinn ich:
index.php
<?php
session_start();
$vars = array();
session_register("vars");
$test1 = "test1.1";
session_register("test1");
session_register("test2");
$test2 = "test2.1";
$vars[] = "text1.1";
$vars[] = "text2.1";
$vars[] = "text3.1";
print "vari1: $vars[0]<br>";
print "vari2: $vars[1]<br>";
print "vari3: $vars[2]<br>";
print "test1: $test1<br>";
print "test2: $test2<br>";
print "<br><br><a href="next.php">Weiter</a>";
?>
next.php
<?php
session_start();
$vari1 = $vars[0];
$vari2 = $vars[1];
$vari3 = $vars[2];
print "vari1: $vari1<br>";
print "vari2: $vari2<br>";
print "vari3: $vari3<br>";
print "test1: $test1<br>";
print "test2: $test2<br>";
$vars[0] = "text1.2";
$vars[1] = "text2.2";
$vars[2] = "text3.2";
$test1 = "test1.2";
$test2 = "test2.2";
print "<br><a href="next2.php">Weiter</a>";
?>
next2.php
<?php
session_start();
$vari1 = $vars[0];
$vari2 = $vars[1];
$vari3 = $vars[2];
print "vari1: $vari1<br>";
print "vari2: $vari2<br>";
print "vari3: $vari3<br>";
print "test1: $test1<br>";
print "test2: $test2<br>";
?>
in next2.php
wird bei allen *.2 ausgegeben.
egal ob ich die variable/array vorher oder nachher registriere...
MfG
Michael W.