RE: [PHP-ES] Pasar arrays en un post
| From: | Jesus Castagnetto | Date: | Sat, 18 Nov 2000 05:59:51 +0000 |
| Subject: | RE: [PHP-ES] Pasar arrays en un post | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-3987@lists.php.net to get a copy of this message | ||
Si al serializar estas generando caracteres especiales, lo mas seguro
es que uses urlencode/urldecode en las llamadas, ej.
$ale1 = urlencode(serialize($ale));
Saludos.
Quoting "Alejandro F. Kapit" <php@kafdesign.com>:
> No funciona.
>
> array.php3:
> ==========
>
> <?php
> $ale[0]="a";
> $ale[1]="b";
> $ale1 = serialize($ale);
> ?>
> <a href="array1.php3?ale=<?php echo $ale1; ?>">continuar</a>
>
>
>
> array1.php3:
> ===========
>
> <?php
> $ale = unserialize($ale);
> print $ale[0];
> print "<br>";
> print $ale[1];
> ?>
>
> --- No me imprime nada y no se porqué.
>
>
> -----Mensaje original-----
> De: jmcastagnetto@zkey.com [mailto:jmcastagnetto@zkey.com]
> Enviado el: Viernes, 17 de Noviembre de 2000 11:11 p.m.
> Para: lista@phpes.com
> CC: php@kafdesign.com
> Asunto: RE: [PHP-ES] Pasar arrays en un post
>
>
> Parafraseando a Lewis Carrol "RTFM, RTFM, RTFM. I said it 3 times,
> what I say 3 times is true": lee unserialize/serialize
>
> El manual tiene la info que necesitas: www.php.net/manual, o
bajatelo
> en: snaps.php.net/manual
>
>
>
-------------------------------------------------
Created by Zkey.com - http://www.zkey.com
Awarded PCMagazine's Editors' Choice