first serialize and then base64encode your array. send this encoded string
to the next page and base64decode it
there first and then unserialize it.

<a href=\"sample2.php?array=".base64_encode(serialize($array))."\">...</a>

and sample2.php:


$array = unserialize(base64_decode($array));

"Hirono Tanaka" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> Hi, does anyone know how to pass an array to different php file?
> Let's assume I have an array $array[] in sample1.php.  I want to pass the
> array to a different php files by doing something like:
>   <a href=\"sample2.php?array=".$array[]."\">...</a>
> This didn't work actually.  I can't think of any other wayto do this.
> Please help.  Thanks.
> _________________________________________________________________
> Chat with friends online, try MSN Messenger:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to