You are here: Re: how send array to other page in URL?? « PHP Programming Language « IT news, forums, messages
Re: how send array to other page in URL??

Posted by Jerry Stuckle on 01/06/08 22:49

suma wrote:
> hi all...
>
> i have array and iwant this array to other page in URL
>
> let the name of array is numbers and i fill this array by loop from
> data base
>
> when i write this ..
> echo "<META HTTP-EQUIV=\"refresh\" content=\"0; URL=reg.php?arr=
> $numbers \"> ";
>
> when redirect to reg page the url is
> http://localhost/reg.php?arr=Array
>
> and when print the variable $arr in reg page apeare Arrary word
>
> so ,please tell me how i can send the array ??
>
> thanks.
>

You have to send each individual element of the array. Alternatively,
you could serialize the array then urlencode it. But that can result in
large amounts of data if your array is big - maybe too much data.

You could store the contents of the array in the $_SESSION variable, but
again, if it's a lot of data this can slow you down. And if it is a lot
of data, you probably should be refetching the data from the database,
anyway.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация