|
Posted by Sanders Kaufman on 01/15/07 08:10
duzhidian@gmail.com wrote:
> Hello:
>
> There are a couple techniques to move information from different html
> web page to web page.
> 1. URL;
> 2. Cookie;
> 3. Form;
> 4. Session;
>
> All the examples I found are move distinguished variables from page to
> page, such as "?weight=20&name='apple'".
>
>
> I need users choose from the first web page (the arrays will be
> generated), then use it in second and third html web pages. How do I
> transfer them (arrays) and which way is the best?
>
> For example, if I have two arrays,
>
> $fruit[] = array("apple", "pear", "orange");
> and associative array
> $myCats["Me"]="Merry";
> $myCats["Pi"]="Pippin";
> $myCats["He"]="Hergie";
>
> How to do that?
>
> Thanks in advance.
You could use the "explode" and "compress" array functions in PHP.
[Back to original message]
|