Re: How to pass an array as parameter in a GET url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can pass the serialized version as the parameter.

You'd go <a 
href="link.php?param=<?=urlencode(serialize($array_language))?>">

And in link.php:

$array_language = unserialize(urldecode($_GET['param']));

-- 
Rajesh

Francisco - São Paulo - Brazil wrote:

> Let's say I have this array:
> 
> Array
> (
>     [0] => Array
>         (
>             [0] => Portuguese
>             [IDIOMA] => Portuguese
>             [1] => 1
>             [ID] => 1
>         )
> 
>     [1] => Array
>         (
>             [0] => English
>             [IDIOMA] => English
>             [1] => 2
>             [ID] => 2
>         )
> 
>     [2] => Array
>         (
>             [0] => French
>             [IDIOMA] => French
>             [1] => 3
>             [ID] => 3
>         )
> 
>     [3] => Array
>         (
>             [0] => German
>             [IDIOMA] => German
>             [1] => 4
>             [ID] => 4
>         )
> 
>     [4] => Array
>         (
>             [0] => Italian
>             [IDIOMA] => Italian
>             [1] => 5
>             [ID] => 5
>         )
> 
>     [5] => Array
>         (
>             [0] => Spanish
>             [IDIOMA] => Spanish
>             [1] => 6
>             [ID] => 6
>         )
> 
> )
> 
> Suppose it is in this var name $array_language
> 
> How can I pass this as parameter?
> 
> This is not working:
> "...&LANGUAGE_ARRAY=".$array_language;




------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux