[PHP] array carrying from one php page to another

2005-12-07 Thread Eternity Records Webmaster
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?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] array carrying from one php page to another

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 01:33:52AM -0500, Eternity Records Webmaster 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

Re: [PHP] array carrying from one php page to another

2005-12-07 Thread Ligaya Turmelle
Session variable or hidden field maybe Eternity Records Webmaster 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??

Re: [PHP] array carrying from one php page to another

2005-12-07 Thread Zack Bloom
you could just pass in in the address, eg: www.example.com?var1=$var1var2=$var2 to get them use $_REQUEST['var1'] to pass an array you could use serialize($var1) and unserialize($var1) On 12/8/05, Chris Shiflett [EMAIL PROTECTED] wrote: Curt Zirzow wrote: ?php $array = array('my',

Re: [PHP] array carrying from one php page to another

2005-12-07 Thread Chris Shiflett
Curt Zirzow wrote: ?php $array = array('my', 'list', 'of', 'stuff'); $_SESSION['array_for_popup'] = $array; ? And in the code that is called in the popup: ?php if(!isset($_SESSION['array_for_popup']) { die('you should not be here anyway, only on a popup is this allowed'); } $array =

Re: [PHP] array carrying from one php page to another

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 02:39:46AM -0500, Zack Bloom wrote: you could just pass in in the address, eg: www.example.com?var1=$var1var2=$var2 to get them use $_REQUEST['var1'] to pass an array you could use serialize($var1) and unserialize($var1) Or just use http_build_query() (php5 only)