Re: [PHP] Passing Arrays between pages

2005-03-22 Thread Josh Whiting
> >Please can someone tell me how you pass arrays between PHP pages. > > $var = serialize($testArray); > echo ""; > > Then unserialize the variable on the receiving page. To this you might also add an MD5 hash to check for authenticity, depending on what you're doing with that incoming data that

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread PartyPosters
March 22, 2005 10:06 PM Subject: Re: [PHP] Passing Arrays between pages > 1. you can put your array in string using implode() function and on next > page create the array back using explode() function. > $testArray = implode('|', $testArray); > # you will get: "App

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread [EMAIL PROTECTED]
1. you can put your array in string using implode() function and on next page create the array back using explode() function. $testArray = implode('|', $testArray); # you will get: "Apple|Banana|Peach" On next page: $testArray = explode('|', $testArray); 2. use serialize()/unserialize() functio

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread Larry E . Ullman
Please can someone tell me how you pass arrays between PHP pages. $var = serialize($testArray); echo ""; Then unserialize the variable on the receiving page. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Arrays between pages

2005-03-22 Thread PartyPosters
Hello, Please can someone tell me how you pass arrays between PHP pages. I have tried something like this and have tried many variations of this but nothing working yet ; Page 1 $testArray[0] =Apple; $testArray[1] =Banana; $testArray[2] =Peach; echo ""; Page2 echo $testArray[1]; On different

Re: [PHP] passing arrays between pages with serialize

2002-08-01 Thread DoL
EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 4:57 PM Subject: Re: [PHP] passing arrays between pages with serialize > Hallo DoL, > > it worked when i didn't use urldecode(), just stripslashes(): > > page-1 > $s_array1 = urlencode(serializ

Re: [PHP] passing arrays between pages with serialize

2002-08-01 Thread DoL
Thanks, I found the problem was with the creation of the 2-di array. - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'DoL'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 12:21 PM Subject: RE: [

Re: [PHP] passing arrays between pages with serialize

2002-07-31 Thread Valeri Felberg
Hallo DoL, it worked when i didn't use urldecode(), just stripslashes(): page-1 $s_array1 = urlencode(serialize($array1)); header("Location: page-2?h_array1=$s_array1"); page-2 $array1 = unserialize(stripslashes($_GET["h_array1"])); The other way that worked was passing arrays in $_SESSIO

RE: [PHP] passing arrays between pages with serialize

2002-07-30 Thread Martin Towell
Can you post/send the results of doing a print_r() on the first page (the one that's serialising) and the results of the serialize()? -Original Message- From: DoL [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: [PHP] passing arrays be

[PHP] passing arrays between pages with serialize

2002-07-30 Thread DoL
Hi I would like to pass three arrays, two of them are two dimensional arrays, to another page (or to the same page just submit to itself) using hidden field and the function serialize. (this is a two dimensional array) page-1 $s_array1 = serialize($array1); page-2 $array1= unserialize(urlde

[PHP] Passing Arrays Between Pages Using Forms

2001-04-05 Thread Mike Gifford
Hello, I've currently got a list which is generated from a single database table: http://openconcept.ca/rabble/newsfeeds.phtml I can now select from this list and be presented with a more concenced list of links into which changes can be made and summaries added: http://openconce