EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 4:57 PM
Subject: Re: [PHP] passing arrays between pages with serialize
> Hallo DoL,
>
> it worked when i didn't use urldecode(), just stripslashes():
>
> page-1
> $s_array1 = urlencode(serializ
Thanks, I found the problem was with the creation of the 2-di array.
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'DoL'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 12:21 PM
Subject: RE: [
Hallo DoL,
it worked when i didn't use urldecode(), just stripslashes():
page-1
$s_array1 = urlencode(serialize($array1));
header("Location: page-2?h_array1=$s_array1");
page-2
$array1 = unserialize(stripslashes($_GET["h_array1"]));
The other way that worked was passing arrays in $_SESSIO
Can you post/send the results of doing a print_r() on the first page (the
one that's serialising) and the results of the serialize()?
-Original Message-
From: DoL [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] passing arrays be
Hi
I would like to pass three arrays, two of them are two dimensional arrays,
to another page (or to the same page just submit to itself) using hidden
field and the function serialize.
(this is a two dimensional array)
page-1
$s_array1 = serialize($array1);
page-2
$array1= unserialize(urlde
5 matches
Mail list logo