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

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

 



However there is a limitation to it. The url can be maximum of 2 040 
characters (I do not remember exactly, but something like that) so you 
can not pass large data with GET. Then you have to use POST.


Adrian

Quoting Rajesh Kumar <rajesh@xxxxxxxxxxxxxx>:

> 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;
>
>
>
>
>
> PHP Data object relational mapping generator
> http://www.metastorage.net/
> Yahoo! Groups Links
>
>
>
>
>
>





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