RE: Re: array carrying from one php page to another

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

 



On 08 December 2005 16:47, Sandy Keathley wrote:

> > I have an array $journal that I want to carry from a page (where it
> > was created) to another page (a popup that shows the variables
> > contents). Is this automatically available? or do I have to do
> > something special to php?? 
> 
> One way:
> $serArray = serialize($array);
> 
> <input type=hidden name=serArray value="<?php echo $serArray ?>">
> 
> At other end:
> 
> $array = unserialize($_POST['serArray']);
> 
> ======================================
> 
> OR
> 
> session_start();
> .
> .
> .
> $_SESSION['array'] = serialize($array);

Why on earth would you want to serialize an array you're adding to the session?  That's just a terrible waste of good machine cycles.

> Zend Certified Engineer

Really??  I think I just lost all faith in that "qualification".

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux