Hi -
I appreciate the help I received with my array passing problem. It seems that while you must urlencode(serialize($array)) to pass, you unserialize(stripslashes($array)) after receiving the variable in the new page. This certainly wasn't obvious to me after reading the manuals - so maybe it will help someone else.
Thanks - Geoff
================================
<?
//test1.php3
print "Pass The Array Test<BR>" ;
if( $ppass ) {
$ary=unserialize(stripslashes($ppass)) ;
print "After Pass - count=" . count($ary) . "<BR>" ;
for($ct=0; $ct<count($ary); $ct++ ) {
print "ary[$ct]=$ary[$ct]<BR>" ;
}
}
if ( ! $ppass) {
// Initialize Array
for ($i=0; $i<10; $i++ ) {
$ary[] = ("test" . strval($i)) ;
}
print "Initialization:<BR>" ;
for($ct=0; $ct<count($ary); $ct++ ) {
print "ary[$ct]=$ary[$ct]<BR>" ;
}
}
$ppass=urlencode(serialize($ary)) ;
print "<A HREF=\"test1.php3?ppass=$ppass\">Again</A><BR>" ;
?>